Skip to content

Unable to run MSpec tests inside a docker container #395

@FBryant87

Description

@FBryant87

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions