protractor icon indicating copy to clipboard operation
protractor copied to clipboard

XML report link broken in FAQ page in doc folder

Open 61ue5peed opened this issue 11 years ago • 4 comments

https://github.com/angular/protractor/blob/master/spec/junitOutputConf.js

^^^ this link is broken ;(

61ue5peed avatar Sep 14 '15 22:09 61ue5peed

How do I produce an XML report of my test results?

You can use the npm package [email protected] and add a JUnit XML Reporter. Check out this example (junitOutputConf.js). Make sure that you are using the correct version of jasmine-reporters for your version of Jasmine.

^^^ this area ^^^^

61ue5peed avatar Sep 14 '15 22:09 61ue5peed

~~Where is this link coming from? ~~ Edit: I didn't read things close enough.

This is the section in the faq.

I'm unfamiliar with xml reporters. Do you have an article that would be able to replace this link?

NickTomlin avatar Sep 14 '15 23:09 NickTomlin

    var jasmineReporters = require('jasmine-reporters');
    jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({
        consolidateAll: true,
        savePath: 'testresults',
        filePrefix: 'reportXMLoutput'
    }));

61ue5peed avatar Oct 15 '15 17:10 61ue5peed

Perhaps we can just include this in a comment in the reference config and change the link to point to that? Otherwise I don't see anything wrong with including this inline in the FAQ.

NickTomlin avatar Oct 15 '15 17:10 NickTomlin