benaadams / System.Ben

Who says you can't be super fast and super secure
MIT License
142 stars 23 forks source link

Fix dotnet-cli errors from `dotnet test` #93

Open mgravell opened 7 years ago

mgravell commented 7 years ago

Running dotnet test currently gives failure messages:

Starting test execution, please wait...
Could not find testhost.dll for source 'C:\code\System.Ben\tests\bin\Debug\netstandard1.0\System.Ben.Tests.dll'. Make sure test project has a nuget reference of package "microsoft.testplatform.testhost".

This is clearly sub-optimal and needs fixing; the perfect fix is sadly hampered by a bug in xunit/VSTest.Console, which gives the following incorrect result:

No test is available in C:\code\System.Ben\tests\bin\Debug\netcoreapp1.1\System.Ben.Tests.dll. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again.

I have therefore used a workaround with:

Total tests: 1. Passed: 0. Failed: 0. Skipped: 1.
Test Run Successful.
Test execution time: 1.5873 Seconds