Closed zplan closed 3 years ago
@zplan thanks for reporting, this appears to be a bug. v2.1.45
used result.TestCase.Traits
(https://github.com/spekt/xunit.testlogger/blob/v2.1.45/src/Xunit.Xml.TestLogger/XunitXmlTestLogger.cs#L151) and v3.0.56
uses result.Traits
(https://github.com/spekt/testlogger/blob/master/src/TestLogger/Core/TestResultInfo.cs#L54). Working on a fix.
Pushed v3.0.62
to nuget.
@codito hey, that was fast, thanks! It is working now with version 3.0.62! Great job.
I have custom traits in my test projects. When I run the tests with xunit.testlogger 2.1.45 it looks like:
Test-Code:
Output xml:
After updating to 3.0.56 the traits are gone:
I can't see a breaking change in the changelog.
Is this a bug or is a change needed?