nunit: NUnit 3.4: NUnit.ConsoleRunner is not picking up NUnit.Extension.NUnitV2ResultWriter
When running NUnit.ConsoleRunner and NUnit.Extension.NUnitV2ResultWriter nuget packages in the following layout
.\tools\NUnit.ConsoleRunner\tools\nunit3-console.exe
.\tools\NUnit.Extension.NUnitV2ResultWriter\tools\nunit-v2-result-writer.dll
the call "C:\some\dir\tools\NUnit.ConsoleRunner\tools\nunit3-console.exe" "C:\some\dir\src\Tests\Test.Assembly.dll" "--work=C:\some\dir\tests" --full "--result=C:\some\dir\tests\TestResult.xml;format=nunit2" --labels=All --noheader succeeds when both packages have version 3.2.1 but fails if both packages have version 3.4.0. The error message is Unknown result format: nunit2
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 21 (20 by maintainers)
@CharliePoole
#toolwill only install tools it knows about, but the extensions can be added into thetools\packages.configfile.I cannot reproduce this. My
tools\packages.configlooks like thisWhich produces a directory structure like that given in the report.
My cake test task looks like,
And the result of running tests is the expected,
Notice the
nunit2result format and this is a 2.6.4 test, so the v2 driver extension worked. NUnit was originally in my path, but I removed it, so that wasn’t the reason it worked. I caught that when I didn’t have the v2 driver listed 😄Source code for this is at https://github.com/rprouse/nunit-tests
I am moving this out of the milestone and switching to confirm until we get more info. I believe @nalla is in Korea, so he probably won’t be able to respond until tomorrow our time because of the time difference.
@nalla if you can provide more information on how to reproduce, we might get a fix in the 3.4.1 release since it may not happen tonight.