jstemmer / go-junit-report

Convert Go test output to JUnit XML
MIT License
776 stars 224 forks source link

Output full classname as testcase classname attribute value #86

Closed lokst closed 2 years ago

lokst commented 5 years ago

Output the full classname in the classname attribute of testcase elements, instead of a classname with the package name removed.

This is consistent with the description for the testcase classname attribute described in https://github.com/windyroad/JUnit-Schema/blob/master/JUnit.xsd ("Full class name for the class the test method is in.")

jstemmer commented 2 years ago

Thanks for your contribution. Most of the code has been rewritten for the recently released v2 version, so I won't be able to merge this change. In the new version the package name is no longer modified when creating the report, so I think the results are similar to what you were proposing here.