jstemmer / go-junit-report

Convert Go test output to JUnit XML
MIT License
764 stars 222 forks source link

Add properties to formatter.JUnitTestCase #107

Closed tbpg closed 2 years ago

tbpg commented 4 years ago

Test cases can have properties. Would it be possible to add a Properties field to formatter.JUnitTestCase?

I'm doing some post processing of the output XML and would like to be able to unmarshal, add properties to test cases, and marshal again.

I'd be happy to send a PR if you're open to it.

jstemmer commented 2 years ago

None of the Junit schema definitions I've come across so far have properties for testcase, they only seem to appear in testsuite. So far I haven't had the need for testcase properties in go-junit-report and I'd prefer to avoid making custom changes to the JUnit schema without good reason. Do you have any examples of software that supports testcase properties?

tbpg commented 2 years ago

Thanks for taking a look. I no longer need the project I was working on that motivated this FR, so we can close this. :smiley: