question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NUnit3TestAdapter 3.17.0 empty output file regression?

See original GitHub issue

Versions: 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:closed
  • Created 3 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
OsirisTerjecommented, Nov 10, 2022

Thanks. See issues #1027 and #1028. There is an alpha there with a fix, and a 4.3.1 will be out shortly

0reactions
Deadvi5commented, Nov 10, 2022

NUnit3TestAdapter version 4.3.0 used with Stryker.NET still have this issue; Rollback to version 3.17 fixed the issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found