Jasmine (Grunt.js) Probe for Probe Dock
Jasmine reporter to publish test results to Probe Dock with Grunt.js.
This reporter can be used with Jasmine-based Grunt plugins like grunt-protractor-runner and grunt-contrib-jasmine. Only Jasmine 1.3 is supported at the moment.
Requirements
- Node.js 0.10+
- Jasmine 1.3
Installation
Install it as a development dependency along with probedock-grunt:
npm install --save-dev probedock-gruntnpm install --save-dev probedock-grunt-jasmine
If you haven't done so already, set up your Probe Dock configuration file(s). This procedure is described here:
For Protractor, add the reporter to your Protractor configuration:
// Load the Probe Dock reporter.var ProbeDockReporter = ; exportsconfig = allScriptsTimeout: 11000 specs: 'e2e/**/*.js' capabilities: 'browserName': 'firefox' baseUrl: 'http://example.com' // The jasmine framework is required. framework: 'jasmine' jasmineNodeOpts: defaultTimeoutInterval: 30000 // Add the Probe Dock reporter to the jasmine environment. { jasmine; };
If you are using grunt-protractor-runner, you must also add the Probe Dock grunt tasks around your test task.
For example, in your Gruntfile:
module { grunt; grunt; grunt; // add the Probe Dock grunt tasks around your task grunt;}
Usage
To track a test with a Probe Dock test key, add this annotation to the test name:
;
You may also define a category, tags and tickets for a test like this:
;
Contributing
- Fork
- Create a topic branch -
git checkout -b feature
- Push to your branch -
git push origin feature
- Create a pull request from your branch
Please add a changelog entry with your name for new features and bug fixes.
License
probedock-grunt-jasmine is licensed under the MIT License.