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

xunit reporter with --file options is not working #27

Closed
crocket opened this issue Jun 1, 2014 · 4 comments
Closed

xunit reporter with --file options is not working #27

crocket opened this issue Jun 1, 2014 · 4 comments

Comments

@crocket
Copy link

crocket commented Jun 1, 2014

Have I done something wrong?

@nathanboktae
Copy link
Owner

I have CI tests for this so you'll need to give details. What version of mocha-casperjs, casperjs, reporter, OS, command line parameters, etc.

@crocket
Copy link
Author

crocket commented Jun 1, 2014

mocha 1.20.0
chai 1.9.1
casper-chai 0.2.1
mocha-casperjs 0.4.4
casperjs 1.1.0-beta3
reporter xunit
OS : ubuntu 64bit 14.04

command line parameter : mocha-casperjs --reporter=xunit --file=reporter.xml

I can see that reporter.xml is empty, and xunit report is printed on stdout.

@crocket
Copy link
Author

crocket commented Jun 1, 2014

It seems that xunit reporter is the culprit.
JSON reporter is redirected to file without a problem.
xunit depends on console.log while JSON reporter depends on process.stdout

@nathanboktae
Copy link
Owner

Yup. I've tried to correct this before actually (mochajs/mocha#1068) but some people depend on it using console.log. Either fork and use your own or just pipe the output.

@nathanboktae nathanboktae changed the title --file options is ignored. xunit reporter with --file options is not working Jun 2, 2014
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