Run browser tests with dalak
This plugin requires Grunt
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-dalek --save-dev
In your project's Gruntfile, add a section named
dalek to the data object passed into
Grunt should load the config options from your Dalekfile
The browsers you would like to test Note: For other browsers than PhantomJS, you need to have the Dalek browser plugin installed.
The reporters you would like to invoke Note: For other reporters than the grunt console output, you need to have the corresponding Dalek reporter plugin installed.
All the options you else would define in your Dalekfile. This overwrites the contents of your Dalekfile.
Basic example of a Grunt config containing the dalek task.
grunt;/*** Loads tasks located in the tasks directory.*/grunt;grunt;
Running dalekjs against multiple files.
dalek:options:// invoke phantomjs, chrome & chrome canarybrowser: 'phantomjs' 'chrome' 'chrome:canary'// generate an html & an jUnit reportreporter: 'html' 'junit'// don't load config from an Dalekfiledalekfile: false// specify advanced options (that else would be in your Dalekfile)advanced:// specify a port for chromebrowsers:chrome:port: 4000