O'Reilly logo

PhantomJS Cookbook by Rob Friesel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running Jasmine unit tests with Karma and PhantomJS from WebStorm

This recipe illustrates how to set up the Karma test runner to run within WebStorm so that we can receive feedback during development without leaving our IDE. WebStorm is an IDE by JetBrains that is focused on JavaScript development and other front-end technologies and tools.

Getting ready

To run this recipe, we will need the following items:

  • JavaScript code to test, and the tests for that code
  • Node.js and npm installed and on our PATH
  • The Karma test runner (and its supporting plugins/modules) installed
  • The WebStorm IDE

    Note

    WebStorm is an IDE by JetBrains that is oriented toward front-end developers and focused on JavaScript, CSS, and HTML. Support for the Karma test runner was added in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required