NUnit3TestAdapter 3.17.0 empty output file regression?
See original GitHub issueVersions: NUnit v3.12.0, NUnit3TestAdapter v3.17.0. Visual Studio Pro 2019 v16.7.2. .NET SDKs & runtimes 2.1.804, 3.1.401, 5.0.100-preview.8.
Running tests as:
dotnet test my.csproj -c Release --no-restore -f netcoreapp3.1 -v normal -- NUnit.WorkDirectory="(path)" NUnit.TestOutputXml="." NUnit.Labels=Before NUnit.Where="(filter)"
With version 3.16.1 of the adapter this produces a result files in (path)
will complete details of all tests. With version 3.17.0 of the adapter that same file only contains:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<command-line><![CDATA[path\to\bin\Release\netcoreapp3.1\testhost.dll --port 18533 --endpoint 127.0.0.1:018533 --role client --parentprocessid 13248 --telemetryoptedin false]]></command-line>
That is, command-line
as root element without any other content.
Expected: same file as with 3.16.1.
I can repro by switching back and forth the adapter NuGet package between 3.16 and 3.17.
Happy to run more tests or provide more details as needed. Will try to have a look into why this is happening.
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Adapter V4 Release Notes
780 NUnit3TestAdapter 3.17.0 empty output file regression? 781 An exception occurred while test discoverer 'NUnit3TestDiscoverer' was loading tests.
Read more >No test found. Make sure that installed test discoverers & ...
In my project file(.csproj) the reference in Target Name was MSTest.TestAdapter.1.2.0 package which was not present in package folder.
Read more >NUnit3TestAdapter 3.17.0
The NUnit3 TestAdapter for Visual Studio, all versions from 2012 and onwards, and DotNet (incl. .Net core). Note that this package ONLY ...
Read more >Unit Test Project Structure
The creation of an NUnit project generates an empty source file for you to include your tests as well as a ProjectTest.csproj file....
Read more >Run parallel Appium tests with C-Sharp NUnit
In this guide, you will learn how to : Setup your environment; Upload your app; Configure and run parallel tests; View test execution...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks. See issues #1027 and #1028. There is an alpha there with a fix, and a 4.3.1 will be out shortly
NUnit3TestAdapter version 4.3.0 used with Stryker.NET still have this issue; Rollback to version 3.17 fixed the issue