I found a nice clean way to keep test results in an orderly way using the Jasmine reporter.
How to install and configure the Jasmine reporter:
Install the Jasmine Reporter:
npm install -g jasmine-reporters
Add the following to the protractor-config.js file:
onPrepare: function() { require('jasmine-reporters'); jasmine.getEnv().addReporter( new jasmineReporters.JUnitXmlReporter('outputxmldir', true, true)); }
Create the folder outputxmldir (all test outputs will be placed here).
Run the protractor and now the results will be exported to an XML file in the outputxmldir folder.
source share