New .NET runner with "test" command

Hi! I'm trying to migrate my old runners (Visual Studio) to the new .NET format.

To build my solution (NET Framework 4.5.1) I have no problem using the new runner with the MSBUILD command (should I use "build" instead?), but I having problems trying to run the tests. I have configured the step to run the runner with the "test" command and filling the projects field with the mask to find the DLL. Everything goes fine but TeamCity log this:

[11:53:51][dotnet test] Starting: "C:\TeamCity Agents\BuildAgent1\tools\JetBrains.dotCover.CommandLineTools.bundled\dotCover.exe" cover "C:\TeamCity Agents\BuildAgent1\temp\agentTmp\1dotCover.xml" /ReturnTargetExitCode /AnalyzeTargetArguments=false
[11:53:51][dotnet test] Starting: .NET SDK 5.0.101 "C:\Program Files\dotnet\dotnet.exe" test C:\SVNProyectosTeamCity\DevOps\AFIP\SIREWSTest\Bin\x86\Release\SIREWSTest.dll /logger:logger://teamcity "/TestAdapterPath:C:\TeamCity Agents\BuildAgent1\plugins\dotnet\tools\vstest15" /logger:console;verbosity=detailed -v detailed
[11:53:51][dotnet test] in directory: C:\SVNProyectosTeamCity\DevOps\AFIP
[11:53:52][dotnet test] JetBrains dotCover Console Runner 2020.2.4. Build 777.0.20200928.101925
[11:53:52][dotnet test] Copyright (c) 2009-2021 JetBrains s.r.o. All rights reserved.
[11:53:56][dotnet test] [JetBrains dotCover] Coverage session started [1/12/2021 6:53:56 AM]
[11:53:59][dotnet test] Microsoft (R) Test Execution Command Line Tool Version 16.8.1
[11:53:59][dotnet test] Copyright (c) Microsoft Corporation. All rights reserved.
[11:53:59][dotnet test]
[11:54:00][dotnet test] Starting test execution, please wait...
[11:54:01][dotnet test] A total of 1 test files matched the specified pattern.
[11:54:01][dotnet test] C:\SVNProyectosTeamCity\DevOps\AFIP\SIREWSTest\Bin\x86\Release\SIREWSTest.dll
[11:54:03][dotnet test] NUnit VS Adapter 2.3.0.0 executing tests is started
[11:54:04][dotnet test] Loading tests from C:\SVNProyectosTeamCity\DevOps\AFIP\SIREWSTest\Bin\x86\Release\SIREWSTest.dll
[11:54:04][dotnet test] Run started: C:\SVNProyectosTeamCity\DevOps\AFIP\SIREWSTest\Bin\x86\Release\SIREWSTest.dll
[11:54:04][dotnet test] NUnit VS Adapter 2.3.0.0 executing tests is finished
[11:54:04][dotnet test] No test is available in C:\SVNProyectosTeamCity\DevOps\AFIP\SIREWSTest\Bin\x86\Release\SIREWSTest.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
[11:54:04][dotnet test]
 
The process run but can't discover any test. In the "migration" process I added the NUNITTestAdapter 2.3.0 nuget to the project.
 
1) What I'm doing wrong?
2) The migration process can't be more transparent? Should I add to every project I have the nuget Package (NUNITTestAdapter ) to be compatible with the new runner?
 
Thanks.
0

Please sign in to leave a comment.