NUnit with Specflow: SetUpAttribute attribute not allowed in a SetUpFixture

Viewed 1325

I upgraded my Nunit to 3.0 from 2.6 and now all of my Unit Tests are failing with the following error:

OneTimeSetUp: SetUpAttribute attribute not allowed in a SetUpFixture

I read through the NUnit documentation and found that there are some "breaking changes" with the new release and I can no longer use a "SetUpAttribute" inside a "SetUpFixture".

I will have to replace this with "OneTimeSetUpAttribute" and I would but my MAIN problem is that my Nunit test fixtures are generated by Specflow.

I have specflow 2.1 and this is generating test fixtures with default "OneTimeSetUpAttribute" regardless of Nunit version.

Did anyone else come across this problem and have a solution for this?

Thanks in advance.

0 Answers
Related