spekt / appveyor.testlogger

Appveyor logger for test platform
MIT License
10 stars 4 forks source link

Lost info from test when run test project on different target frameworks #2

Open MonkAlex opened 4 years ago

MonkAlex commented 4 years ago

See https://ci.appveyor.com/project/MonkAlex/mangareader/builds/32544247

Test projects run on two target <TargetFrameworks>net461;netcoreapp3.1</TargetFrameworks>

When build in process, "doubles" showed on appveyor, but not has any differents in display info (exclude output messages). When build completed, tests result collapsed, doubles removed. No idea, what test result showed now.

Can i fix it local or need logger changes?

codito commented 4 years ago

@MonkAlex thanks for reporting the issue. Need some help to understand it.

Are you expecting the AppVeyor tests page (e.g. https://ci.appveyor.com/project/MonkAlex/mangareader/builds/32544247/tests) to show 2 entries for each test since the tests are run for both net461 and netcoreapp3.1 frameworks?

MonkAlex commented 4 years ago

Yes, i want see 2 entries for every test. But, i see the events in code - no info about framework, no idea, how to do it.

codito commented 4 years ago

We can extract the target framework in the logger and may be prefix it to the test name before we send it to the appveyor API. So the test named foo can become [net46] foo or similar.

Here's how Nunit logger extracts the framework: https://github.com/spekt/nunit.testlogger/blob/master/src/NUnit.Xml.TestLogger/NUnitXmlTestLogger.cs#L143

Let me know if you would like to contribute a patch :)

MonkAlex commented 4 years ago

Let me know if you would like to contribute a patch :)

Sorry, not now. Maybe later, if has time. Thanks for the links, has info about realization now =)