I have one single protractor project with following dependencies in packages.json:
I have this protractor-config:
exports.config =
specs: [
'build/test/e2e/**/*_spec.js'
]
capabilities:
browserName: "chrome"
onPrepare: () ->
require('jasmine-reporters')
jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter("test/reports/e2e",
false, true))
<testsuite ....> <testcase classname="..." name="..." time="0.008"/> <testcase classname="..." name="..." time="0.002"/> <testcase classname="..." name="..." time="0.108"/> <testcase classname="..." name="..." time="0.004"/> <testcase classname="..." name="..." time="0.002"/> </testsuite>
Note: I am not using mocha nor karma.
JUnitXmlReporter()
and JUnit
format specifically was not designed to be read by humans. It is a specific format that your Continuous Integration server (like jenkins
) knows how to understand, parse and show readable results.
If you want to see an HTML report, there is protractor-html-screenshot-reporter
package.