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
Post a Comment