views:

295

answers:

1

I am using the TeamCity VisualStudio sln configuration to drive my CI build. It runs all my NUnit tests - which is all well and great but I don't want TeamCity running any of my tests with the [Category("DatabaseTests")] attribute (since they hit an actual database).

In the NUnit configuration under categories to exclude I put simply DatabaseTests but its not working. Is there something I'm missing? Is there a way that I can see what teamcity is sending to the nunit runner?

+2  A: 

You can turn on DEBUG mode:

to enable 'DEBUG' log level for TeamCity classes. To do it, edit the logs/teamcity- (server|agent)-log4j.xml file by removing all the lines containing comment. After that, DEBUG messages will go to teamcity-*.log files.

Make sure the logs are rotated by default. When debug is enabled it makes sense to increase maxBackupIndex value in the relevant appender tag to 10 or even 20 files (ensure there is sufficient free disk space available).

...which I got from their docs. And then you can see what is happening.

Nick DeVore
awesome, thanks nick
George Mauer