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

Feature similar to record_property from pytest? #457

Open
mikeholler opened this issue Dec 5, 2019 · 1 comment
Open

Feature similar to record_property from pytest? #457

mikeholler opened this issue Dec 5, 2019 · 1 comment
Labels

Comments

@mikeholler
Copy link

Hello, long time user first time caller here. I've been looking for a way to inject test traceability data (e.g., issue tracking IDs) into our JUnit XML and couldn't find a way to do it looking at the docs for nose2.

pytest seems to support this (1), and I feel like nose2 could support it using the attrib plugin (2), but I didn't have any success.

My question: does nose2 have this feature, or a similar feature I could use? If not, are there plans to make it into a feature?

Thanks all for a great tool!

@sirosen
Copy link
Collaborator

sirosen commented Dec 9, 2019

We don't have a feature like this today. I'd be more than happy to review a pull request adding this, but I doubt I'll have time to try working on it anytime soon (most of my time on nose2 is spent on review or bugfixes, not new feature work).

If you want to take a crack at this, I'd start by looking at the testOutcome event handler in the junitxml plugin and "working backwards" from there. The real question is how to attach the information you want to the testOutcome event.

@sirosen sirosen added the feature label Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants