/grunt-phantom-jasmine

Run jasmine specs headlessly through PhantomJS

Primary LanguageJavaScriptMIT LicenseMIT

grunt-phantom-jasmine

##Drop me a line if your interested to contribute.

Run jasmine specs headlessly through PhantomJS.

Getting Started

This plugin requires Grunt ~0.4.5

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-phantom-jasmine --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-phantom-jasmine');

The "phantom_jasmine" task

Overview

In your project's Gruntfile, add a section named phantom_jasmine to the data object passed into grunt.initConfig().

grunt.initConfig({
  phantom_jasmine: {
    command: 'vendor/phantomjs-2.1.1-macosx/bin/phantomjs tasks/lib/runjasmine2.js remote url'
  }
});

Run this task with the grunt phantom_jasmine command.

Options

Howto

How to use grunt-phantom-jasmine can be found at testing-grunt-phantom-jasmine.

Release History

  • 2016-10-14   v0.1.4   Include how to use grunt-phantom-jasmine in readme.
  • 2016-10-14   v0.1.2   Official Release.
  • 2016-10-14   v0.1.1   Fixed grunt configuration for finding phantomjs.
  • 2016-09-25   v0.1.0   Work in progress, not yet officially released.