I am trying to generate xml reports using jasmine-reporters(JunitXmlReporter) but the result gets overridden when running multiple spec files parallelly as I am running protractor test with 4 instances on Selenium Grid. The Xml report always shows the last spec files result which ran.
Here is my onPrepare() funtion where I am using jasmine-reporter. Can some-one help me with what changes I have to make. so that I can get a consolidated report of all the spec files ran
onPrepare: function() {
let jasmineReporters = require('jasmine-reporters');
jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({
consolidateAll: false,
savePath: 'xmlCloudlets_Reports',
filePrefix: + '-xmloutput'
}));
}
Also FYI I am using shardTestFiles:true and maxInstance:4 in config.js file for parallel tests. [email protected] [email protected]