testing - NUnit - Running specific test case using testcase attribute through command line -
i want run below test case through nunit console using command line.`
class listcities : test.helperclasses.testbase { [testcase(category="smoke",testname = "tc1", description = "dessciption")] public void searchcity() { } }` i tried command --test=test.helperclasses.testbase.listcities.tc1. want execute test using testname(tc1) attribute , not along namespace(test.helperclasses.testbase) , class name(listcities).
below python code execute test case using nunit console
os.system("call "+nunitpath+" "+dllpath+" -- test=test.helperclasses.testbase.listcities.tc1 --result="+resultpath) thanks in advance
the testname property of testcaseattribute sets name of test. --test option of console runner uses full name of test. alternative tried right way specify test case - that's how nunit works.
if want have more succinct syntax, read documentation --where option. allow --where test=~tc1.
Comments
Post a Comment