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

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

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