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

Add --reporter-options configuration option #153

Open
burreo opened this issue Aug 3, 2017 · 6 comments
Open

Add --reporter-options configuration option #153

burreo opened this issue Aug 3, 2017 · 6 comments

Comments

@burreo
Copy link

burreo commented Aug 3, 2017

The described option for the xunit reporter

The “XUnit” reporter is also available. By default, it will output to the console. To write directly to a file, use --reporter-options output=filename.xml.

doesn't work with testee.

@andrejewski
Copy link
Contributor

Testee currently does not support reporter options, I've also never seen them before. Have a good link?

@burreo
Copy link
Author

burreo commented Aug 3, 2017

its mentioned here: https://mochajs.org/#reporters

@andrejewski
Copy link
Contributor

I think you mean https://mochajs.org/#undocumented-reporters, but I see. It seems like this is the only reporter which takes options. I would prefer not coupling Testee to Mocha much more, and adding another option would be doing that.

Have you tried piping your Testee output to your file? For example, testee test.html --browsers fixrefox > filename.xml. If that isn't suitable, I'll look into these reporter options.

@burreo
Copy link
Author

burreo commented Aug 3, 2017

Well, I faced some issues in my CI setup with that, using the reporter options would be a workaround. Ideally testee would support this reporter https://www.npmjs.com/package/mocha-jenkins-reporter

@andrejewski
Copy link
Contributor

I see. I suppose we should support that given it's a known convention out there. There's a lot of work planned around improving Testee's configuration. This should be covered in those changes.

@andrejewski andrejewski changed the title testee and xunit reporter doesn't work with --reporter-options output=filename.xml Add --reporter-options configuration option Aug 3, 2017
@ivospinheiro
Copy link
Collaborator

ivospinheiro commented Jan 24, 2019

It would be great if we were able to pass the reporterOptions to the reporter initialization.
I will try to do a PR to enable this configuration option on testee when I have some time.

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

No branches or pull requests

3 participants