machine / machine.specifications

Machine.Specifications is a Context/Specification framework for .NET that removes language noise and simplifies tests.
MIT License
885 stars 178 forks source link

Unable to run MSpec tests inside a docker container #395

Open FBryant87 opened 5 years ago

FBryant87 commented 5 years ago

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?

robertcoltheart commented 5 years ago

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.