When I call mono ./tools/nunit-console.exe --list-extensions --teamcity
I see that the extension is discovered:
Runtime Environment
OS Version: MacOSX 23.2.0.0
Runtime: .NET Framework CLR v4.0.30319.42000
Installed Extensions
Extension Point: /NUnit/Engine/TypeExtensions/IService
Extension Point: /NUnit/Engine/TypeExtensions/ITestEventListener
Extension: NUnit.Engine.Listeners.TeamCityEventListener
Version: 1.1.0.0
Path: /Users/Vitaliy.Kim/Desktop/NUnitMigration/NUnit.ConsoleRunner.4.0.0-alpha.31/NUnit.Extension.TeamCityEventListener/tools/net462/teamcity-event-listener.dll
Extension Point: /NUnit/Engine/TypeExtensions/IDriverFactory
Extension Point: /NUnit/Engine/TypeExtensions/IProjectLoader
Extension Point: /NUnit/Engine/TypeExtensions/IResultWriter
But when I run the command specifying the DLL with tests: mono ./tools/nunit-console.exe /path-to-tests/Tests/bin/Debug/net7.0/HelloWorld.NUnit.dll --result=/path-to-output/1.xml --noheader --teamcity
, I see that events start-suite, start-test, test-case, and test-suite do not reach ITestEventListener#OnTestEvent.
I am attaching my test project to the ticket: Tests.zip.
Additionally, I am including two files comparing the events received in NUnit 3 and NUnit 4.
If you diff their contents, you can see that out of all the events that were received in version 3, only start-run and test-run events are now received in version 4:
v3_test_run.txt
v4_test_run.txt
Please note that in this build, I have added Console.Error.WriteLine
statements to the ITestEventListener#OnTestEvent method so that you can see which events are received during testing.
I didn't change the rest of the method's logic.
public void OnTestEvent(string report)
{
Console.Error.WriteLine(report);
Console.Error.WriteLine();
...
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4