Using NUnit3TestAdapter v5.2.0:
dotnet new nunit
dotnet add package ReportPortal.NUnit
dotnet test
Output:
/home/runner/work/agent-net-nunit/agent-net-nunit/src/ReportPortal.NUnitExtension/ReportPortalListener.cs(58): error TESTERROR:
/Users/Mikalai_Barysenka/Projects/Temp/NUnitTest6/bin/Debug/net8.0/NUnitTest6.dll (< 1ms): Error Message: System.Collections.Generic.KeyNotFoundException
: Property 'Server:Url' not found in the configuration. Make sure you have configured it properly.
It is OK, indicates that custom extension is loaded. Here ReportPortal.NUnit is custom extension. This package adds ReportPortal.addins file in bin\Debug directory to be picked up by engine extension loader.
Now if we upgrade NUnit3TestAdapter to v6.1.0, then extension is not picked up.
Test summary: total: 1, failed: 0, succeeded: 1, skipped: 0, duration: 2,7s
Most likely the behaviour has been changed in scope of #488
Using
NUnit3TestAdapter v5.2.0:Output:
It is OK, indicates that custom extension is loaded. Here
ReportPortal.NUnitis custom extension. This package addsReportPortal.addinsfile inbin\Debugdirectory to be picked up by engine extension loader.Now if we upgrade
NUnit3TestAdapterto v6.1.0, then extension is not picked up.Most likely the behaviour has been changed in scope of #488