ProtractorPageObjects icon indicating copy to clipboard operation
ProtractorPageObjects copied to clipboard

Get an JUnit Xml Report out of the test?

Open damaniente opened this issue 11 years ago • 1 comments

Hello, first of all thank you very much Droogans for your great tutorial on page objects. You've done a GREAT work !

Question 1: Is is possible to have an JUnit/XUnit xml file generated at the end of each Suite? Question 2: How to change the config protractor.conf.js to generate it?

Something like this: junit-report

I found some info here: Mocha XUnit Reporter https://github.com/visionmedia/mocha/blob/master/lib/reporters/xunit.js

npm install xunit-file https://www.npmjs.org/package/xunit-file

Continuous Integration with Jenkins and Node.js and Mocha XUnit https://blog.dylants.com/2013/06/21/jenkins-and-node/

best regards damaniente

damaniente avatar Jun 19 '14 14:06 damaniente

I would look into some of those packages you linked to, and possibly this one as well if you're running tests in parallel

https://github.com/futurice/mocha-jenkins-reporter

You can specify the reporter to be used by Protractor in its configuration file. Be sure to tell Jenkins that you're generating a junit xml file after test runs, and where it can find it.

Droogans avatar Jun 27 '14 15:06 Droogans