Closed oakio closed 6 years ago
@oakio, could you please report version of TeamCity .NET CLI plugin?
How to detect plugin version? All "Bundled plugins" in our Teamcity has version 47070.
PS: Also, I have tried run tests on my local machine, where is no TeamCity .NET CLI plugin, with same result.
@oakio, do you use to execute dotnet test
TeamCity .NET CLI plugin or run it via command line runner?
Via command line (powershell script aka build script).
@oakio is it possible to share simple solution to reproduce? Did you manually change the output directory?
https://github.com/JetBrains/TeamCity.VSTest.TestAdapter/pull/11
In short, VSTestTestAdapterPath
was incorrect when using Full .NET Framework (in my case TargetFramework=net461
)
Released here
Command
dotnet test
executed with message "No test is available in C:\temp\MyApp\build\bin\net461\MyApp.Tests.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again."My configuration:
But when
TeamCity.VSTest.TestAdapter
package removed, all tests were successful found.