protractor icon indicating copy to clipboard operation
protractor copied to clipboard

how to enable jasmine xml junit reports?

Open csarnevesht opened this issue 13 years ago • 5 comments

Hi there,

I'm trying to enable the jasmine xml junit reports.

I've seen that I can use the following in protractorConf.js: onPrepare: function() { jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter( 'target/failsafe-reports', true, true)); },

However, I'm getting an error indicating what appears to be jasmine being null? Do i need to create a jasmine variable somewhere? where?

csarnevesht avatar Nov 17 '13 23:11 csarnevesht

Just updated the example configuration: 26823e92b042bfd6ce9b41fd5eb687b5e2c7bb9d

What you're doing should work. What is the exact error you're getting?

juliemr avatar Nov 18 '13 23:11 juliemr

i figured out that you need to do the following:

add the following line at the top of protractorConf.js:     require('jasmine-reporters');

and also install jasmine-reporters :)    npm install jasmine-reporters

probably the above steps should be added to the instructions... so that clueless people like me can get it working faster :)

thanks! Carolina

On Monday, November 18, 2013 3:16 PM, Julie Ralph [email protected] wrote:

Just updated the example configuration: 26823e9 What you're doing should work. What is the exact error you're getting? — Reply to this email directly or view it on GitHub.

csarnevesht avatar Nov 18 '13 23:11 csarnevesht

really helpful thanks!

jameshd avatar Dec 19 '13 13:12 jameshd

Added some docs to the FAQ: ba8220598708989e0f760a09d3787069abf4aaee

juliemr avatar Dec 28 '13 01:12 juliemr

The latest commit from this ticket seems to be on production, but the URL goes to 404 now.

ghost avatar May 12 '15 15:05 ghost