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

Propose: Making xunit-file compatible with grunt-mocha-test #11

Closed
Stofkn opened this issue Nov 30, 2013 · 2 comments
Closed

Propose: Making xunit-file compatible with grunt-mocha-test #11

Stofkn opened this issue Nov 30, 2013 · 2 comments

Comments

@Stofkn
Copy link

Stofkn commented Nov 30, 2013

Hi,

It should be nice if I can use this lib the same as some other reporters.
Just pass the path to the file as optional parameter, rather than environment variable.

mochaTest: {
'xunit-file-report': {
options: {
reporter: 'xunit-file',
captureFile: 'test/xunit.xml'
},
src: ['test/*/-spec.js']
},...

Thanks in advance!

Kind regards

Kristof

@Stofkn
Copy link
Author

Stofkn commented Nov 30, 2013

Solved it by removing the 'captureFile' option and adding:
process.env.XUNIT_FILE = 'test/xunit.xml';
The captureFile will capture the output but it's not the same as what's inside the xunit.xml file.
Don't know why.

@matthaias
Copy link
Member

Close?

This issue was closed.
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