I have the following configuration in protractor config.js, but it is generating only the screenshots in the specified folder not the HTML report.
I have gone through the steps followed here
https://www.npmjs.com/package/protractor-jasmine2-html-reporter
var Jasmine2HtmlReporter = require('protractor-jasmine2-html-reporter');
onPrepare() {
jasmine.getEnv().addReporter(new Jasmine2HtmlReporter({
savePath: './test/reports/',
fileName: 'MyReportName'
}));
}
Can someone specify where I'm missing or is there any version specific issue?
I'm using Protractor Version 5.2.0, Node v6.11.2
I have issues with spec file which is causing the html report generation.
If we didn't provide
expect
and finish theit
function, html report is not generating.Always
expect
is mandatory