Closed gpasnik closed 8 years ago
Thanks for the report - I see this as well. I wonder if it's related to the recent updates to .Net Core and the preview tooling. Will have a look.
Weirdly enough MSpec's own tests work fine:
c:\code\machine.specifications\Source\Machine.Specifications.Specs>dotnet test
dotnet-test-mspec: 0.2.0
Machine.Specifications: 1.0.*
Specs in Machine.Specifications.Specs:
// snip...
Contexts: 78, Specifications: 186, Time: 2.27 seconds
@gpasnik You have typos, which with the newer C# compilers is valid syntax (expression bodied member).
Because of **=>** () =>
should be Because of **=** () =>
, so =
instead of =>
MSpec ignores classes without Because
I see. Very thanks for help! I couldn't find this on my own, thanks once again! 👍
Hi, I have a problem with running unit tests. I made a class library for mspec tests with one dummy test inside.
and project.json is exactly the same as here https://github.com/machine/machine.specifications/wiki/.NET-Core-(.NET-CLI)
But when I want to run tests with "dotnet test" I see this:
dotnet info:
Does anyone else have the same problem?