Is it possible for run NUnit against a specific (long) list of tests

Asked by Andrew Masters

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)

Question information

Language:
English Edit question
Status:
Answered
For:
NUnit V2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Charlie Poole (charlie.poole) said :
#1

This is not currently possible - I converted the question to a feature request.

Charlie

On Thu, Aug 18, 2011 at 4:01 AM, Andrew Masters
<email address hidden> wrote:
> New question #168400 on NUnit V2:
> https://answers.launchpad.net/nunitv2/+question/168400
>
> 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)
>
> --
> You received this question notification because you are an answer
> contact for NUnit V2.
>

Revision history for this message
Andrew Masters (q5dy) said :
#2

Thanks! Much appreciated.

One thought was a dynamic excludes list. So you could check that any
failures are your fault rather than pre-existing.
1) CI Server run Nunit and xml gets parsed to failures file
2) Developer runs unit tests /except fileset('knownfailures.txt')

(If only knowfailures.txt always was empty)

Cheers,
Andy

On 25 August 2011 11:10, Charlie Poole <<email address hidden>
> wrote:

> Bug #828739 status changed in NUnit V2:
>
> Triaged => Fix Committed
>
>
> https://bugs.launchpad.net/nunitv2/+bug/828739
> "Run NUnit tests listed in a file"
>
> This bug is linked to #168400.
> Is it possible for run NUnit against a specific (long) list of tests
> https://answers.launchpad.net/nunitv2/+question/168400
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
Charlie Poole (charlie.poole) said :
#3

We could consider that for 3.0. Can you please file a feature request?

On Thu, Aug 25, 2011 at 7:55 PM, Andrew Masters
<email address hidden> wrote:
> Question #168400 on NUnit V2 changed:
> https://answers.launchpad.net/nunitv2/+question/168400
>
>    Status: Answered => Open
>
> Andrew Masters is still having a problem:
> Thanks! Much appreciated.
>
> One thought was a dynamic excludes list. So you could check that any
> failures are your fault rather than pre-existing.
> 1) CI Server run Nunit and xml gets parsed to failures file
> 2) Developer runs unit tests /except fileset('knownfailures.txt')
>
> (If only knowfailures.txt always was empty)
>
> Cheers,
> Andy
>
>
> On 25 August 2011 11:10, Charlie Poole <<email address hidden>
>> wrote:
>
>> Bug #828739 status changed in NUnit V2:
>>
>>    Triaged => Fix Committed
>>
>>
>> https://bugs.launchpad.net/nunitv2/+bug/828739
>> "Run NUnit tests listed in a file"
>>
>> This bug is linked to #168400.
>> Is it possible for run NUnit against a specific (long) list of tests
>> https://answers.launchpad.net/nunitv2/+question/168400
>>
>> --
>> You received this question notification because you asked the question.
>>
>
> --
> You received this question notification because you are an answer
> contact for NUnit V2.
>

Can you help with this problem?

Provide an answer of your own, or ask Andrew Masters for more information if necessary.

To post a message you must log in.