Embracing the Messiness in Search of Epic Solutions

Tag: Karma

  • Karma: Managing Plugin Versions in package.json

    PROBLEM Let’s assume our package.json looks like this:- What we want to do is to update all the plugin versions defined in this file. SOLUTION After trying out several solutions, it appears that using npm-check-updates is a better and cleaner solution for discovering newer versions of these plugins. First, we need to install npm-check-updates globally.… Read More…

  • Why I Am Switching to Karma

    OVERVIEW JavaScript testing is hard. Most of the time, it is just plain difficult to set up the test harness just to run Javascript tests. CURRENT STATE Most of my team’s existing production web applications do not use any MV* frameworks. A few newer projects use Backbone/Marionette. We rely on the following stack:- We choose… Read More…

  • Jenkins: Getting Karma Generated Test Results to Appear in Maven Project Job

    PROBLEM Jenkins, for some reason, does not pick up Karma generated JUnit test reports even though they are created in the right directory… and apparently, it is a known problem. While Freestyle project job allows us to manually publish these JUnit reports, my intention is to rely on Maven project job to do the same… Read More…

  • IntelliJ : Karma Integration

    Overview Although we can run karma start karma.conf.js on the command line to start Karma test runner, JetBrains provides a great Karma-IntelliJ integration to run and display the JavaScript test results within IntelliJ. Prerequisites Install Karma Plugin in IntelliJ The first step is to install the Karma plugin created by JetBrains. Create Karma “Run” Configuration… Read More…

  • Karma: Getting Started

    Overview This tutorial walks through the steps need to configure Karma to work with a Maven web project. It will also be used as a base for my future Karma related posts. Install Node.js First, download Node.js from http://nodejs.org/download/ and install it. Once installed, we should be able to invoke npm command from the command… Read More…