Nunit-console.exe with parameterized test fixtures

315 views
Skip to first unread message

poddarsumit

unread,
Aug 4, 2011, 12:07:37 AM8/4/11
to NUnit-Discuss
Hi

I am using NUnit 2.5.10. I am facing a issue trying to run my test
with parameterized text fixture using nunit-console.exe.

Say I have 2 test fixtures
[TestFixture("InternetExplorer","1.1.1.1)]
[TestFixture("Firefox","1.1.1.1"]
public class BrowserTest

And I only wanted to run the TestFixture Firefox. Whats the command
line option to run that in NUnit ?

Tried with /run ("Firefox,"1.1.1.1"). Seems like its not finding the
right test.

Regards
Sumit

Charlie Poole

unread,
Aug 4, 2011, 12:21:44 AM8/4/11
to nunit-...@googlegroups.com
/run your.name.space.BrowserTest("Firefox","1.1.1.1")

> --
> You received this message because you are subscribed to the Google Groups "NUnit-Discuss" group.
> To post to this group, send email to nunit-...@googlegroups.com.
> To unsubscribe from this group, send email to nunit-discus...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nunit-discuss?hl=en.
>
>

sumit poddar

unread,
Aug 4, 2011, 7:51:10 PM8/4/11
to nunit-...@googlegroups.com
strangely enough it did not work
had it /run namespace.BrowserTest("Firefox","1.1.1.1")

and it comes up with Test Run 0 Errors 0

Is there something I am missing

its of the format <namespace>.<Class name>("test fixture parameters")
is that right?

Charlie Poole

unread,
Aug 4, 2011, 8:37:10 PM8/4/11
to nunit-...@googlegroups.com
Sorry... you have to escape the quotes in the name or the
command line will just eat them.

/run namespace.BrowserTest(\"Firefox\",\"1.1.1.1\")

Charlie

Reply all
Reply to author
Forward
0 new messages