Using dotnet.cli plugin test fail but pass when run from command line

My unit tests pass when run directly from the console:

    dotnet test mysolution.sln

But they fail when run through the dotnet.cli plugin.  I notice from the logs that it executes this command line: 

    dotnet.exe test Miruken.AspNet.sln @C:\TeamCity\BuildAgents\BuildAgent03\temp\agentTmp\2.rsp

I tracked the failure down to this line in the rsp file:

/p:VSTestTestAdapterPath=C%3A%5CTeamCity%5CBuildAgents%5CBuildAgent03%5Cplugins%5Cdotnet%2Ecli%5Ctools%5CTeamCity%2EDotnet%2EIntegration%2E1%2E0%2E8%5Cvstest15%3B%2E

If I remove that line tests pass again.

I pulled down the code for the plugin, but having trouble finding where it actually sets ups up and runs the tests.

Some direction is greatly appreciated

Team City 2019.1.4

 

Please sign in to leave a comment.