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

Console.log and test reporter are mixed in output #189

Closed
nqbao opened this issue May 19, 2015 · 2 comments
Closed

Console.log and test reporter are mixed in output #189

nqbao opened this issue May 19, 2015 · 2 comments

Comments

@nqbao
Copy link
Contributor

nqbao commented May 19, 2015

Sometime when our test scripts print out something, it will be print to stdout and mixed with reporter output. Example as below when i use xunit reporter and the test script print out something.

bootstrap application
init executor id 87d5137c-6db4-5976-7d97-220eca3c210d
<testsuite name="Mocha Tests" tests="9" failures="1" errors="1" skipped="0" timestamp="Tue, 19 May 2015 17:43:01 GMT" time="0.344">
<testcase classname="DrilldownBuidler" name="can parse relationship query" time="0.002"/>
<testcase classname="DrilldownBuidler" name="can parse distribution query" time="0.001"/>
<testcase classname="DrilldownBuidler" name="can generate query hint for distribution query" time="0.001"/>
<testcase classname="DrilldownBuidler" name="can generate query hint for relationship query" time="0.001"/>
<testcase classname="DrilldownBuidler" name="can generate query hint for relationship query with for each" time="0"/>
<testcase classname="Document" name="can create new document" time="0.007"><failure><![CDATA[Author is required [400]
undefined]]></failure></testcase>
<testcase classname="Kernel" name="can run Python code" time="0.064"/>
<testcase classname="Kernel" name="can run R code" time="0.049"/>
<testcase classname="PerformanceTracker" name="can get total duration" time="0.206"/>
</testsuite>

It's hard to consume the reporter output for CI system. I think there are two possible solutions

  • Add a flag (--no-console) to totally disable output printing
  • Add a flag (--reporter-output) for separately saving the reporter output to a file
@nathanboktae
Copy link
Owner

Please search for issues before filing them. the xunit reporter and console output mixing has been discussed at length in #114 and #161.

Add a flag (--reporter-output) for separately saving the reporter output to a file

We already have that - it's --file but read the issues with xunit first.

@nqbao
Copy link
Contributor Author

nqbao commented May 19, 2015

Got it, will do a proper search next time.

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

2 participants