Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i get the test report as xml? #40

Open
ghost opened this issue Aug 27, 2013 · 4 comments
Open

how can i get the test report as xml? #40

ghost opened this issue Aug 27, 2013 · 4 comments

Comments

@ghost
Copy link

ghost commented Aug 27, 2013

I want to run the tests in Jenkins.How can i get the test report as xml?

@trevmex
Copy link
Owner

trevmex commented Sep 13, 2013

Currently the rhino-reporter is generating text. It is generated here: https://github.com/trevmex/EnvJasmine/blob/master/lib/jasmine-rhino-reporter/jasmine-rhino-reporter.js

If you let me know what format you would like the XML in, I'd be happy to create a custom reporter for you to have it formatted nice in Jenkins.

@deterb
Copy link

deterb commented Nov 19, 2013

I have some interest in being able to do this as well.

I think something like what you see at http://stackoverflow.com/questions/4922867/junit-xml-format-specification-that-hudson-supports would be ideal for what he's after. To summarize the simple format:

<testsuite tests="3">
    <testcase classname="foo" name="ASuccessfulTest"/>
    <testcase classname="foo" name="AnotherSuccessfulTest"/>
    <testcase classname="foo" name="AFailingTest">
        <failure type="NotEnoughFoo"> details about failure </failure>
    </testcase>
</testsuite>

You can find a copy of the schema in the Jenkin's source code.

@ghost
Copy link
Author

ghost commented Nov 20, 2013

I think the format can be like this:

<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>

  <testsuite name="article model" errors="0" tests="1" failures="0" time="0.016" timestamp="2013-11-19T23:04:34.029Z">

      <testcase assertions="3" classname="article model" name="should fire the change event" time="0.015">

      </testcase>

  </testsuite>

</testsuites>

@benniemosher
Copy link

benniemosher commented Sep 6, 2017

@trevmex Was there ever a reporter generated for this? I am looking at getting this working on Jenkins as well but can't seem to find an XML reporter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants