Reputation: 51
from what i could find till now , i am not sure it is possible , but maybe there is something that i am missing.
like in any test project we have lots of tests classes ( in our case these are E2E tests that runs on an live system)
when in some tests we need to run a script as a prerequisite that triggers an iis reset command .
which affect other tests ..
so what we want achieve is running these tests ( tests that triggers iisrest one by one ) after all other tests where executed.
thanks
Upvotes: 0
Views: 230
Reputation: 869
You can use the OrderAttribute
from NUnit on your tests or you could potentially split the tests into separate TestFixtures so that they do not interfere with each other.
I'm sure others will suggest that all tests should be able to run in any order without affecting any others but my experience is that ordering is sometimes much easier than trying to make each test run completely independently.
Upvotes: 1