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

Fix #1864: xunit missing output with --reporter-options output #1878

Merged
merged 1 commit into from
Sep 9, 2015
Merged

Fix #1864: xunit missing output with --reporter-options output #1878

merged 1 commit into from
Sep 9, 2015

Conversation

danielstjules
Copy link
Contributor

Fix for #1864

./bin/mocha --reporter=xunit --reporter-options output=results.xml test.js; cat results.xml
<testsuite name="Mocha Tests" tests="2" failures="1" errors="1" skipped="0" timestamp="Wed, 09 Sep 2015 19:34:48 GMT" time="0.004">
<testcase classname="my test" name="should pass" time="0.001"/>
<testcase classname="my test" name="should fail" time="0.001"><failure><![CDATA[fail
Error: fail
    at Context.&lt;anonymous&gt; (test.js:7:14)
    at callFnAsync (/Users/danielstjules/git/mocha/lib/runnable.js:306:8)
    at Test.Runnable.run (/Users/danielstjules/git/mocha/lib/runnable.js:261:7)
    at Runner.runTest (/Users/danielstjules/git/mocha/lib/runner.js:417:10)
    at /Users/danielstjules/git/mocha/lib/runner.js:524:12
    at next (/Users/danielstjules/git/mocha/lib/runner.js:338:14)
    at /Users/danielstjules/git/mocha/lib/runner.js:348:7
    at next (/Users/danielstjules/git/mocha/lib/runner.js:281:14)
    at Object._onImmediate (/Users/danielstjules/git/mocha/lib/runner.js:316:5)]]></failure></testcase>
</testsuite>

@danielstjules
Copy link
Contributor Author

Merging this in since the build is green, and it's essentially a 1 line fix (just moving inherits)

danielstjules added a commit that referenced this pull request Sep 9, 2015
Fix #1864: xunit missing output with --reporter-options output
@danielstjules danielstjules merged commit edaef34 into mochajs:master Sep 9, 2015
@danielstjules danielstjules deleted the issue-1864 branch September 9, 2015 20:15
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

Successfully merging this pull request may close these issues.

None yet

1 participant