Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reporters broken in 2.5.1 release #384

Closed
csMACnz opened this issue Sep 19, 2023 · 8 comments
Closed

Reporters broken in 2.5.1 release #384

csMACnz opened this issue Sep 19, 2023 · 8 comments

Comments

@csMACnz
Copy link

csMACnz commented Sep 19, 2023

I'm still investigating the actual root cause or workarounds.

The symptom I am having is that the teamcity reporter is no longer working in xunit.runner.visualstudio 2.5.1. This was working in xunit.runner.visualstudio 2.5.0.

I do get this error message when using -- xUnit.ReporterSwitch=teamcity

[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.5.1.1+5fe7eebc65 (64-bit .NET 7.0.11)
[xUnit.net 00:00:00.02] Could not find requested reporter 'teamcity'

I've narrowed down the difference to the fact that the dlls are no longer included in the build folder of the nuget package. Though still investigating if that is the true cause or not.

image

Which is these commits: 0d583f2 96555ae

Installing xunit.runner.reporters into the project has not fixed the issue but testing continues.

Runtime: .Net 7.0

@csMACnz
Copy link
Author

csMACnz commented Sep 20, 2023

After some Investigation, the best I can tell is that xunit.runner.visualstudio (xunit.runner.visualstudio.dotnetcore.testadapter.dll) which lives in the build folder is using that build folder for the reflection and so when xunit.runner.reporters.netcoreapp10.dll is not present in that folder the reporters from inside it are not discovered.

I haven't looked and checked out the discovery code to see if or how it could look inside the test project bin folder for those missing dlls or not... (or if this is the true issue) There is certainly some churn in this space recently though... so maybe it wasn't 100% completed before these dlls were removed?

@bradwilson
Copy link
Member

@csMACnz This probably came from #383.

@bradwilson
Copy link
Member

Fixed in 2.5.2-pre.3

@csMACnz
Copy link
Author

csMACnz commented Sep 20, 2023

I can confirm that the changes in 2.5.2-pre.3 have fixed this issue 🎉

Thanks for the prompt resolution, looking forward to 2.5.2 to drop 🙇‍♂️

@bradwilson
Copy link
Member

I'll wait a few days to see if any other issues surface, and then just cut it over.

Thanks!

@nvborisenko
Copy link

It affected 3rd-party reporter reportportal/agent-net-xunit#27. It worked good with 2.5.0.

File name of that reporter is ReportPortal.XUnit.reporters.dll which is located in output bin folder. Tests target net7.0.

I also tried 2.5.2-pre.3, still doesn't work.

@bradwilson
Copy link
Member

@nvborisenko Please open a new issue with a repro project. Thanks!

@Aleh-Yanushkevich
Copy link

@bradwilson issue #385 with a link to repro project is created.

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

No branches or pull requests

4 participants