c# - how to get nunit results to a database -
hi trying nunit results database while running. need way see if test has passed or failed on teardown can write code insert values database based on if passes or fails.
so possible information in teardown if current running test in passing or failing state, information such test name , if has failed reason failure.
thanks
in nunit @ or post 2.4.4, can testresult
happens using eventlisteners - need write results db testfinished
method.
void testfinished(testresult result);
the name of test of recent teststarted
call:
void teststarted(testname testname);
to have implement nunit addin implements eventlisteners
interface.
Comments
Post a Comment