-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Allow customization option for junit formatter #2265
Comments
I tend to agree, and I like your suggestion, though that would potentially end up being a significant change so let's make another issue for that. |
To enable this with the current options structure we'd do something like: {
"formatOptions": {
"junit": {
"suiteName": "my test suite"
}
}
} |
The line in question is here https://github.com/cucumber/cucumber-js/blob/main/src/formatter/junit_formatter.ts#L245. The |
May I work on this? This is my first time contributing so may have a few questions along the way! |
Sure @Sam-ScottLogic, go for it! Feel free to ask questions here, or join #committers-js in the Slack https://cucumber.io/docs/community/get-in-touch/ |
@Sam-ScottLogic Hi am I okay to take a look into this? |
@astocker-scottlogic Yes! |
🤔 What's the problem you're trying to solve?
currently all reports generated with cucumberjs junit formatter bear the name 'cucumber-js'. It would be great to be able to customize it via format options and cli param
✨ What's your proposed solution?
format option with test suite name.
⛏ Have you considered any alternatives or workarounds?
open for suggestions...
📚 Any additional context?
On a side note, it is not really clear how to configure options in a cucumber.mjs file when there are multiple formtters defined.
The text was updated successfully, but these errors were encountered: