machine.specifications
machine.specifications copied to clipboard
Unable to run MSpec tests inside a docker container
Using the .net CLI I'm trying to run MSpec tests, this works perfectly outside of Docker:
dotnet test MyMspecTestProject.csproj
No problem there, but if I try the same command inside a Docker container I get:
Test run in progress. No test is available in bin/Debug/netcoreapp2.2/MyMspecTestProject.dll. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again.
I figured this was related to it not having an appropriate package, but I've restored it inside the container with all the following:
Microsoft.NET.Test.Sdk" Version="15.0.0" Machine.Specifications.Runner.Console" Version="1.0.0" Machine.Specifications.Runner.VisualStudio" Version="2.9.0" Machine.Specifications" Version="1.0.0"
Anything else I might be missing?
You don't need the console runner if you run dotnet test
. I'm not sure why it wouldn't work otherwise. I'll have to add it to the list for v2.0
.