spekt / junit.testlogger

JUnit test logger for vstest platform (<= v3.x)
MIT License
77 stars 15 forks source link

NUnit Description option for Junit test reports #48

Open spoilerdo opened 2 years ago

spoilerdo commented 2 years ago

Hiii, I have the following question: Is it possible to have the NUnit descriptions available in a Junit test report as name? This would be cool to have as an extra option in the CLI.

Example of description: image

Siphonophora commented 2 years ago

I do think this is possible, but I don't think we would want to substitute the description for the name. For a parameterized test, we would loose the parameter info which is needed to point uniquely to the case. So that isn't an option.

So a best case might be something like name="TestMethodName(1, true) 'Description of the test'". I think this would often be awkwardly long, but whether or not it displays ok is probably down your CI platform. Are there examples where not having the description is a problem, or its just a nice to have?

If we made this change, it would need to cover the xunit and mstest equivalents.

spoilerdo commented 2 years ago

nice to have