Fork of fancy protractor html reporter with another feature to alwayys generate data files with the same names (useful in case of re-running failed testcases) All credit goes to the owner of protractor pretty html reporter and fancy protractor reporter
npm i fancy-protractor-reporter --save-dev
NOTE: jasmine is set as a peer dependency
- Combining results of several reports
- Pass/Fail at a glance via navbar highlighting
- Bolds it('segment') within describe sentence for easy code searching
- Adds timing in milliseconds for total run time and spec run times
- Browser console logs for each spec
- Long running test support, report can be refreshed during test runs (see options)
- Suspect Line, best guess in the stack trace for your code (see options)
- Screenshots (see options)
- Cleans the target directory between runs
- Overwrites test results to have a consolidated view after several retries
protractor.conf
var FancyReporter = require('fancy-protractor-reporter').Reporter;
var fancyReporter = new FancyReporter({
path: 'report/fancy' + new Date().toISOString().substring(0,19),
screenshotOnPassed: false,
});
module.exports = {
/* the rest of the object omitted */
onPrepare: function() {
jasmine.getEnv().addReporter(fancyReporter);
},
afterLaunch = () => {
fancyReporter.combineReports();
}
};
For more options
First Example - branch Example1
Second Example - branch Example2
Git location - https://github.com/vdimikj/protractor-example.git