Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dotnet-cli errors from dotnet test #93

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mgravell
Copy link

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

Base automatically changed from master to main January 21, 2021 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant