Closed csMACnz closed 11 months ago
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?
@csMACnz This probably came from #383.
Fixed in 2.5.2-pre.3
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 🙇♂️
I'll wait a few days to see if any other issues surface, and then just cut it over.
Thanks!
It affected 3rd-party reporter https://github.com/reportportal/agent-net-xunit/issues/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.
@nvborisenko Please open a new issue with a repro project. Thanks!
@bradwilson issue #385 with a link to repro project is created.
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 inxunit.runner.visualstudio
2.5.0.I do get this error message when using
-- xUnit.ReporterSwitch=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.
Which is these commits: https://github.com/xunit/visualstudio.xunit/commit/0d583f282abe40548466205e7328cc9e39cd3d94 https://github.com/xunit/visualstudio.xunit/commit/96555ae16f077124a853ffad1a643d990a331ce8
Installing
xunit.runner.reporters
into the project has not fixed the issue but testing continues.Runtime: .Net 7.0