Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

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

Open
MonkAlex opened this issue Apr 30, 2020 · 4 comments
Assignees

Comments

@MonkAlex
Copy link

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
Copy link
Contributor

codito commented May 9, 2020

@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?

@codito codito self-assigned this May 9, 2020
@MonkAlex
Copy link
Author

MonkAlex commented May 9, 2020

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
Copy link
Contributor

codito commented May 9, 2020

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
Copy link
Author

MonkAlex commented May 9, 2020

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 =)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants