Protractor supports integration with Jasmine reporters. Jasmine reporters have a collection of JavaScript Jasmine reporter classes. We’ll use JUnitXMLReporter which provideds the test execution results in XML format.
Install Jasmine reporter
npm install -g jasmine-reporters
Configurations
After successful installation configure report in conf.js, “resutls/” is directory where report will be saved,
onPrepare: function() {
file.require(‘jasmine-reporters’);
jasmine.getEnv().addReporter(
new jasmine.JUnitXmlReporter(‘results/‘, true, true)
);