I have written some system tests using C#, Selenium and NUnit and configured my TeamCity to trigger a build and run all the tests when a code is checked in.
These tests are categorized differently in terms of when to execute; some should run only once a day and the others like every 2 hours.
How this could be achieved?
I thought maybe one solution could be to add Categories and getting TeamCity to run the tests based on the category name e.g. “OneADay”, “Every2Hours”, “General”.
Not sure how to configure TeamCity to identify this.
Or is there any better way to achieve this?
Hope the question is clear.
Many thanks,
Your idea of categories on the tests will work. You simply need to specify which categories need to be run by using the /category-include and /category-exclude parameters of the TeamCity NUnit test runner.
http://confluence.jetbrains.net/display/TCD65/TeamCity+NUnit+Test+Launcher