Run NUnit tests listed in a file

Bug #828739 reported by Charlie Poole
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NUnit V2
Fix Released
Medium
Charlie Poole

Bug Description

I have a list of several thousand NUnit tests that I want to run (generated automatically by another tool). (This is a subset of all of the tests, and changes frequently)

I'd like to be able to run these via NUnit-Console.exe. Unfortunately the /run option only takes a direct list of files which in my case would not fit on a single command line. I'd like it to pickup the list from a specified text or xml file with a list of tests.

I appreciate that I could use categories, but the list I want to run changes frequently and so I'd prefer not to have to start changing source code.

Does anyone know if there is a clean way to get NUnit to run my specified tests? (I could break it down into a series of smaller calls to NUnit-console with a full command line, but that's not very elegant)

If it's not possible, should add this as a NUnit feature request?
(http://stackoverflow.com/questions/7105475/is-it-possible-for-run-nunit-against-a-specific-long-list-of-tests)

Related branches

Revision history for this message
Charlie Poole (charlie.poole) wrote :

Let's discuss how this should work at the command line on the nunit-discuss list.

tags: added: console feature
Revision history for this message
Charlie Poole (charlie.poole) wrote :

After discussion on the list, it was decided to add a /runlist parameter taking the name of a file. The file contains, one per line, the test cases, fixtures, or namespaces to be executed. Lines starting with a # are ignored.

We also discussed adding a more general option to place any arguments in a file, but that will need to be a separate feature and it won't be done in NUnit 2.6.

Changed in nunitv2:
assignee: nobody → Charlie Poole (charlie.poole)
importance: Undecided → Medium
milestone: none → 2.6.0b1
status: New → Triaged
status: Triaged → Fix Committed
Changed in nunitv2:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.