c# - How can I re-run a nunit test programmatically in 3.2? -


in nunit 2.6.4, used below c# code re-run failed test:

testexecutioncontext.currentcontext.currenttest.run(new nulllistener(), testfilter.empty); 

but after upgrading nunit 3.2, testexecutioncontext.currentcontext.currenttest returns null. how can re-run test in 3.2?

if trying re-run tests because fail because of transient network errors or like, nunit 3.x introduced retry attribute retry test given number of times.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -