2

How can I execute just a single test case through the NUnit ConsoleRunner using the --test=NAMES argument.

If I right click on a test case in Visual Studio and 'Copy' this is the information regarding the test.

Test Name:  MakePaymentToAccountViaPayPal
Test FullName:  POMAuctivaTest.TestSuite.ExistingUserTestSuite("firefox").MakePaymentToAccountViaPayPal
Test Source:    c:\git\POMAuctivaTest\POMAuctivaTest.TestSuite\ExistingUserTestSuite.cs : line 263
Test Outcome:   Not Run
Test Duration:  0:00:00

Here are some of the different ways I tried to run the tests.

enter image description here

I have tried with both the Test Name and the Test FullName and both attempts don't actually run the test cases. I have a feeling the issue is with the string being passed as a parameter but I am not sure.

Buster
  • 685
  • 1
  • 5
  • 28

1 Answers1

3

Have just tried this, looks like you just need to escape the quotation marks. So use:

--test=POMAuctivaTest.TestSuite.ExistingUserTestSuite(\"firefox\").MakePaymentToAccountViaPayPal
Chris
  • 5,882
  • 2
  • 32
  • 57