I'm using VS 2017 with the new csproj in a .NET Standard class library, trying to test the library with a .NET Core 1.1 test project using MSTest testing framework with the dotnet test
command. Running locally works perfectly fine; when I send the build to continuous integration, I get the error:
No test discoverer is registered to perform discovery of test cases.
How do I get this discoverer registered, and my tests running, in VSTS?
This is my build process on VSTS (detailed on my blog here)
dotnet restore
task.dotnet build
task.dotnet test
task with the arguments --no-build --logger "trx;LogFileName=tests-log.trx
Publish test results
task with the following settingsTest Result Format
= VSTestTest Result Files
= **/tests-log.trxMerge Test Results
= (checked)Control Options
set Run this task
to run even if a previous task has failed