-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #592 from launchableinc/nunit
Work around a bug in NUnitXML.Logger mishandling nested type
- Loading branch information
Showing
9 changed files
with
146 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"events": [ | ||
{ | ||
"type": "case", | ||
"testPath": [ | ||
{ "type": "Assembly", "name": "Launchable.NUnit.Test.dll" }, | ||
{ "type": "TestSuite", "name": "Launchable" }, | ||
{ "type": "TestSuite", "name": "NUnit" }, | ||
{ "type": "TestSuite", "name": "Test" }, | ||
{ "type": "TestSuite", "name": "Outer+Inner" }, | ||
{ "type": "TestCase", "name": "TheTest" } | ||
], | ||
"created_at": "2023-07-28T 22:32:13Z", | ||
"duration": 1.6e-05, | ||
"status": 1, | ||
"stdout": "", | ||
"stderr": "", | ||
"data": null | ||
} | ||
], | ||
"testRunner": "nunit", | ||
"group": "", | ||
"noBuild": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!-- | ||
This report file was created from github.com/launchableinc/nunit 8ce509a573ac3fa84d2b6c22f28c46e044f6e904 | ||
by running "dotnet test -l:nunit", which triggers an apparent bug in NUnitXML.Logger and produces an incorrect | ||
<test-case> that has more than a method name in its @methodname. | ||
NUnit console runner and its reporter doesn't have this issue, as tested in src/Tests.cs, we need to work around | ||
this bug. | ||
See https://launchableinc.atlassian.net/l/cp/aYKtdjDw for an internal investigation note with more context. | ||
--> | ||
<test-run id="2" duration="0.012734" testcasecount="7" total="7" passed="5" failed="0" inconclusive="2" skipped="0" result="Passed" start-time="2023-07-28T 22:32:13Z" end-time="2023-07-28T 22:32:13Z"> | ||
<test-suite type="Assembly" name="Launchable.NUnit.Test.dll" fullname="/home/kohsuke/ws/launchable/nunit/Launchable.NUnit.Test/bin/Debug/net6.0/Launchable.NUnit.Test.dll" total="7" passed="5" failed="0" inconclusive="2" skipped="0" result="Passed" start-time="2023-07-28T 22:32:13Z" end-time="2023-07-28T 22:32:13Z" duration="0.012734"> | ||
<test-suite type="TestSuite" name="Launchable" fullname="Launchable" total="1" passed="1" failed="0" inconclusive="0" skipped="0" result="Passed" start-time="2023-07-28T 22:32:13Z" end-time="2023-07-28T 22:32:13Z" duration="1.6E-05"> | ||
<test-suite type="TestSuite" name="NUnit" fullname="Launchable.NUnit" total="1" passed="1" failed="0" inconclusive="0" skipped="0" result="Passed" start-time="2023-07-28T 22:32:13Z" end-time="2023-07-28T 22:32:13Z" duration="1.6E-05"> | ||
<test-suite type="TestFixture" name="Test" fullname="Launchable.NUnit.Test" classname="Launchable.NUnit.Test" total="1" passed="1" failed="0" inconclusive="0" skipped="0" result="Passed" start-time="2023-07-28T 22:32:13Z" end-time="2023-07-28T 22:32:13Z" duration="1.6E-05"> | ||
<test-case name="TheTest" fullname="Launchable.NUnit.Test.Outer+Inner.TheTest" methodname="Outer+Inner.TheTest" classname="Test" result="Passed" start-time="2023-07-28T 22:32:13Z" end-time="2023-07-28T 22:32:13Z" duration="1.6E-05" asserts="0" seed="427950853" /> | ||
</test-suite> | ||
</test-suite> | ||
</test-suite> | ||
<errors /> | ||
</test-suite> | ||
</test-run> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
# Dev environment | ||
* [Install .NET SDK](https://dotnet.microsoft.com/download) on your platform of choice. | ||
Specifically, .NET Core 3.1 | ||
* Install NUnit console runner from [the zip page](https://github.com/nunit/nunit-console/releases/tag/v3.12) | ||
or other formats of your choice | ||
* `dotnet build` will produce `bin/Debug/netcoreapp3.1/calc.dll` that contains all the code | ||
* `dotnet $NUNIT/bin/netcoreapp3.1/nunit3-console.dll` to run NUnit3 console runner. | ||
More specifically, `dotnet $NUNIT/bin/netcoreapp3.1/nunit3-console.dll ./bin/Debug/netcoreapp3.1/calc.dll` will run tests | ||
More specifically, `dotnet --roll-forward LatestMajor $NUNIT/bin/netcoreapp3.1/nunit3-console.dll ./bin/Debug/netcoreapp3.1/calc.dll` will run tests (with the most recent .NET SDK you have) | ||
and produce `TestResult.xml` that we capture as `../output.xml`. | ||
* `--explore=list.xml` to produec the test list. | ||
* Internal: See https://launchableinc.atlassian.net/l/c/RUoketE0 for more detailed notes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters