Explicitly set test order

Asked by Simone Busoli

It would be nice to have an option for the console runner to be able to specify in some way to execute some tests matching a sort of pattern first. I don't have a precise idea of how I would like this to work, but I think it would help CI scenarios so that you can tell the runner to run test which failed recently first, in order to have a shorter feedback cycle. TeamCity already does this with his NUnit plugin.

Question information

Language:
English Edit question
Status:
Solved
For:
NUnit Framework Edit question
Assignee:
No assignee Edit question
Solved by:
Charlie Poole
Solved:
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

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

Setting this back to open, since I didn't see it until janitor expired it.

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

The /run option let's you specify what will run by name, but in that case only those tests are run. You're looking for some kind of /runfirst option, I guess. The alternative would be to completely specify the run in an xml file.

I suggest adding this to the Console Runner specification on the wiki - even if only as an issue to be resolved.

Revision history for this message
Simone Busoli (simone.busoli) said :
#4

Thanks Charlie Poole, that solved my question.

Revision history for this message
Peter Newhook (peter-newhook) said :
#5

hi Charlie. I´m not sure I understood your comment. As I understood it Simone wan´t needs something like [Test (order=¨1¨)] or [Test (Depends=¨1¨)]. Wht would the runfirst option be?

If I could specify order in an XML file that would also work. Is that possible? The console unner would need to be aware of the run order, but how could I specify my desired order of execution?

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

Specifying order via an attribute has been discussed as a possible feature. However, Simone's question was specifically about a console runner option to indicate a certain test (or tests?) to be run first. This is possible as well. Of course both of these are just ideas - NUnit does not have either feature yet.