MattHoneycutt / SpecsFor

SpecsFor is a light-weight Behavior-Driven Development framework that focuses on ease of use for *developers* by minimizing testing friction.
http://specsfor.com
MIT License
196 stars 70 forks source link

TestExplorer does not show SpecsFor<MvcWebApp> tests #87

Closed RedX2501 closed 8 years ago

RedX2501 commented 8 years ago

I'm trying to go for NUnit as it seems that SpecsFor was designed for that.

Unfortunately with Nunit 3.0.1 and NUnit3 Test Adapter all tests for SpecsFor don't show up in the TestExplorer. Tests that don't rely on MvcWebApp show up fine in TestExplorer.

RedX2501 commented 8 years ago

After investigating some more it seems that the whole test is not found with nunit3.

Nunit3-console does not run the tests not found in Test Explorer.

RedX2501 commented 8 years ago

Ok so this seems to caused by Nunit not supporting nunit3 but when installing via nuget it seems to install the nunit package which is defaulting now to Nunit 3.

MattHoneycutt commented 8 years ago

You'll need to install NUnit 2.x. SpecsFor does not support NUnit 3 yet. If you install SpecsFor first, it will install NUnit 2.6.3, the version that SpecsFor was built against. This version will work with the NUnit 2 VS test adapter, ReSharper, TeamCity, and most other test runners.

It sounds like you are trying to jump in the deep end without having mastered the basics. You should start with the tutorial here: https://specsfor.readme.io/docs/getting-started

abdelrady commented 8 years ago

@MattHoneycutt Any plans to support nunit 3 soon ?

MattHoneycutt commented 8 years ago

It's planned, but I have no ETA on when it'll happen. Pull requests accepted though. :)

be4i commented 8 years ago

Can you please reflect the dependency requirement in nuget, because right now it says "NUnit (>= 2.6.3)" and nuget is allowing me to update the version of NUnit

nik0lias commented 8 years ago

I agree with be4i, this would be handy as myself and I suspect many others could have NUnit 3 installed and then work backward to SpecsFor. It took me quite a bit of googling to find the issue.

Great tool, I may do a pull request time permitting :)

MattHoneycutt commented 8 years ago

I've opened #100 to address this, one way or another.