nose2 icon indicating copy to clipboard operation
nose2 copied to clipboard

Feature similar to record_property from pytest?

Open mikeholler opened this issue 4 years ago • 1 comments

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!

mikeholler avatar Dec 05 '19 20:12 mikeholler

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 avatar Dec 09 '19 15:12 sirosen