I have a collection of REST API tests, WebDriver based tests, Appium based tests and additional tests that run via shell. All written in C#.

All tests are written as VS unit tests, and in the case of the shell tests, are executed via a visual studio unit test.

Currently all I have is a collection of VS unit tests, which I'm pretty happy with. However, I need to support some extra flow control for the test run. If one of the tests fails, I wish to run some other specific tests, and run the failed one again at the end.

Which tool or tools can support this logic?

Thanks in advance!

2 Answers 2


Nunit has ActionAttributes which are similar conceptually to @DependsOn in TestNG. Simple version, you can have flows of tests depending on their outcomes.

Caveat:- I generally don't recommend its usage as although in and of itself, it can be used appropriately, it can very quickly add to the complexity of the testing framework.
Before you start using it, I suggest you sit down and map out all your scenarios with your team and consider the maintainability of the code going forward.


Have you ever thought to use:

Both of them can help you to add more control to you test runs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.