# Exclude NUnit categories when running tests

**URL:** https://www.finalbuilder.com/forums/t/exclude-nunit-categories-when-running-tests/1254
**Category:** Discussion
**Created:** [July 8, 2009, 12:42pm UTC](https://www.finalbuilder.com/forums/t/exclude-nunit-categories-when-running-tests/1254 "2009-07-08T12:42:57Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![andrew.nixon](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@andrew.nixon](https://www.finalbuilder.com/forums/u/andrew.nixon)
#### Post date: [July 8, 2009, 12:42pm UTC](https://www.finalbuilder.com/forums/t/exclude-nunit-categories-when-running-tests/1254/1 "2009-07-08T12:42:57Z")

</div>

Is there any way to specify to NUnit to exclude certain categories of tests when running through finalbuilder?

I have some tests which I do not want to run on every build. I know I can specify categories using the nunit command line app, but I want to use the nunit action in finalbuilder so I get all the test statistics and with that action I cannot see how to specify which categories to run.

Thanks

Andrew

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [July 9, 2009, 1:20am UTC](https://www.finalbuilder.com/forums/t/exclude-nunit-categories-when-running-tests/1254/2 "2009-07-09T01:20:25Z")

</div>

We don’t have built in support for this (I will add it to the todo list), however you can set this in the Action Properties inspector tab, there are two properties, “Extra Params at End”, and “Extra Params at Start”.   
  
 This page has the format of the command line parameters you need to add :   
  
 [http://www.nunit.org/index.php?p=consoleCommandLine&r=2.5](http://www.nunit.org/index.php?p=consoleCommandLine&r=2.5)

---

<div class="post-metadata">

### Author: ![andrew.nixon](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@andrew.nixon](https://www.finalbuilder.com/forums/u/andrew.nixon)
#### Post date: [July 10, 2009, 7:11am UTC](https://www.finalbuilder.com/forums/t/exclude-nunit-categories-when-running-tests/1254/3 "2009-07-10T07:11:24Z")

</div>

Thanks, I actually never realised those properties exist ,

I will give it a try..

---

<div class="post-metadata">

### Author: ![andrew.nixon](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@andrew.nixon](https://www.finalbuilder.com/forums/u/andrew.nixon)
#### Post date: [July 23, 2009, 11:01am UTC](https://www.finalbuilder.com/forums/t/exclude-nunit-categories-when-running-tests/1254/4 "2009-07-23T11:01:27Z")

</div>

Ok, the reason I never realised those properties exist is because they don't.

I have Fixture, XMLOutput File, Transform File, Don't display Logo, Display XML in output, Project configuration and Fail if no tests run.

Am I missing something? (I'm in v6.3, Professional edition)

Thanks

Andrew

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [July 23, 2009, 11:46am UTC](https://www.finalbuilder.com/forums/t/exclude-nunit-categories-when-running-tests/1254/5 "2009-07-23T11:46:25Z")

</div>

Hi Andrew

These are the properties I was referring to :

![nunit.jpg](https://www.finalbuilder.com/forums/uploads/default/original/1X/3181e785d6ac91104e5a128c32453d3ea81d58af.jpeg)

---

<div class="post-metadata">

### Author: ![andrew.nixon](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@andrew.nixon](https://www.finalbuilder.com/forums/u/andrew.nixon)
#### Post date: [July 23, 2009, 12:01pm UTC](https://www.finalbuilder.com/forums/t/exclude-nunit-categories-when-running-tests/1254/6 "2009-07-23T12:01:58Z")

</div>

Many thanks,

I was looking in the wrong place, my bad.

Seems to work perfectly, thanks again.

Andrew
