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

Is there any plan to support core 2.0? #350

Closed Y2zz closed 6 years ago

Y2zz commented 6 years ago

Currently core2.0 has been released for a long time, MSpec cannot be used normally in core2.0

Y2zz commented 6 years ago

@agross @ivanz @dannyvincent

jonnii commented 6 years ago

Have you tried? It works fine for me.

Y2zz commented 6 years ago

I tried it, is not well supported.

BrunoJuchli commented 6 years ago

@Y2zz So what's missing?

jonnii commented 6 years ago

You need something like this in your csproj:

<PackageReference Include="Machine.Specifications" Version="0.12.0" />
<PackageReference Include="Machine.Specifications.Should" Version="0.11.0" />
<PackageReference Include="Machine.Specifications.Runner.VisualStudio" Version="2.6.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.6.0" />

Then running from dotnet test will probably do what you want. I think the bug here is lack of documentation - but that's pretty standard across the board in core land.

Y2zz commented 6 years ago

I re-validated that mstest can now be used to run tests but resharper cannot be used to run tests