Reputation: 1106
I just started having this issue today after updating my nuget packages, specifically the NUnit package to 3.9.1. I have always decorated my selenium test files as unit tests through NUnit and have utilized the various different tags to specify the different "parts" of each test fixture.
I use the OneTimeSetUp tag on each fixture to launch my browser and sign into the web app. I use the OneTimeTearDown tag to dispose of my driver and close the browser. I use the Test tag to specify the tests themselves, and I also have a Retry tag that I use on each test to retry based on outcome.
After updating to 3.9.1, it seems as if the OneTimeSetUp and OneTimeTearDown, along with the Retry tags are no longer recognized by visual studio, however the Test tags all are recognized.
Does anyone have any ideas as to why these attributes are no longer being recognized after working over the past few months? Any direction would be appreciated.
Thank you.
Upvotes: 2
Views: 1523
Reputation: 1106
Turns out on the update, for some reason it downloaded the dll of NUnit v2.6, and I'm assuming that both OneTimeSetUp and OneTimeTearDown were not present in NUnit 2.6 and my system was reading that dll instead of the new one.
I deleted NUnit 2.6 from my project and it instantly was able to recognize the other tags.
Upvotes: 1