Comment 6 for bug 712444

Revision history for this message
Charlie Poole (charlie.poole) wrote : Re: [Bug 712444] Re: nunit-console /run don't execute parameterized test-cases (with commas in test-case name)

Re second issue: bug tracker is not the place to ask how to use nun it.
Please use the mail list.
On Apr 27, 2013 12:30 PM, "kishore" <email address hidden> wrote:

> I am having 1 more issue:
>
> Sub:run specific Tests through coding
>
> I am using Selenium with C# fro Automation, and i want to invoke the
> Nunit through coding, i did it using below code.
>
> CoreExtensions.Host.InitializeService();
> TestPackage testPackage = new
> TestPackage(@"D:\Automation\bin\Debug\Test.dll");
> RemoteTestRunner remoteTestRunner = new RemoteTestRunner();
> remoteTestRunner.Load(testPackage);
> //TestFilter filter = new NameFilter(new TestName() { Name = "Test1" });
> TestResult testResult = remoteTestRunner.Run(new NullListener(),
> TestFilter.Empty, false, LoggingThreshold.Off);
>
> and i am able to run tests using category filter as below
>
> remoteTestRunner.Run(new
> NullListener(),newCategoryFilter("MyCat"),false,LoggingThreshold.Off);
>
> But i want to execute selected tests i.e how to set suite filter, i have
> tried this but faild.
>
> TestFilter filter=new NameFilter(new TestName() { Name = "Test1" });
> TestResult testResult=remoteTestRunner.Run(new NullListener(),
> filter,false,LoggingThreshold.Off)`;
>
> Please tell
> 1. how to run specific tests and
> 2.how to pass arguments through coding.
>
> Thanks,
> kishore.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/712444
>
> Title:
> nunit-console /run don't execute parameterized test-cases (with commas
> in test-case name)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nunitv2/+bug/712444/+subscriptions
>