machine.specifications icon indicating copy to clipboard operation
machine.specifications copied to clipboard

Unable to run MSpec tests inside a docker container

Open FBryant87 opened this issue 5 years ago • 1 comments

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?

FBryant87 avatar Oct 11 '19 14:10 FBryant87

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.

robertcoltheart avatar Oct 13 '19 06:10 robertcoltheart