Table of Contents generated with DocToc
This is a protractor example of Jasmine Spec Reporter, which is a real time console spec reporter for jasmine behavior-driven development testing framework.
Install Jasmine Spec Reporter via npm
npm install jasmine-spec-reporter --save-dev
The code snippets cover the protractor implementation of the reporter tool.
Please see this link for a full implementation for jasmine node tests and other configuration files. Special thanks to Bastein Caudan for this. Please star his repository.
To use this reporter in the protractor tests, add the following to your conf.js
file
let SpecReporter = require('jasmine-spec-reporter').SpecReporter;
exports.config={
//your configuration here
onPrepare:function(){
jasmine.getEnv().addReporter(new SpecReporter({
spec:{
displayStacktrace:true
},
summary:{
displayDuration:false
}
}));
};
For a full implementation, see the conf.js file in this repository.