Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anyone used SpecFlow with xUnit 2.0 successfully?

The current version of SpecFlow.Xunit is not compatible with xUnit 2.0.

I cannot rollback to xUnit 1.9.0 as all other unit tests are written for xUnit 2.0. The current verions of SpecFlow.Xunit uses IUseFixture, which is obsolete in xUnit 2.0 .

So I would like to ask if anyone is using SpecFlow.Xunit with xUnit 2.0? How you do it ?

like image 805
Sam Teera Avatar asked Apr 10 '15 17:04

Sam Teera


2 Answers

I followed the link CoderDennis suggested. https://github.com/techtalk/SpecFlow/issues/419

Basically, I installed xUnit 1.9.2 and then install SpecFlow.xUnit after. Now, the project can be built without error so far.

Thank you.

like image 133
Sam Teera Avatar answered Oct 11 '22 13:10

Sam Teera


The SpecFlow.xUnit NuGet package now has a pre-release version available with support for xUnit 2.0.

like image 32
Muhammad Rehan Saeed Avatar answered Oct 11 '22 14:10

Muhammad Rehan Saeed