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

Unable to run MSpec tests inside a docker container #395

Open
FBryant87 opened this issue Oct 11, 2019 · 1 comment
Open

Unable to run MSpec tests inside a docker container #395

FBryant87 opened this issue Oct 11, 2019 · 1 comment

Comments

@FBryant87
Copy link

FBryant87 commented Oct 11, 2019

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants