How to get TeamCity to exclude nunit test categories?

I am using the TeamCity VisualStudio sln configuration to control my CI build. It runs all my NUnit tests - all this is good and excellent, but I don’t want TeamCity to run any of my tests with the [Category ("DatabaseTests")] attribute (since they ended up in the actual database).

In the NUnit configuration, in categories for exclusion, I just put DatabaseTests , but it didn't work. Is there something I'm missing? Is there a way so I can see which team wants to send to nunit?

+3
source share
1 answer

You can enable DEBUG mode:

to enable the "DEBUG" log level for TeamCity classes. To do this, edit the / teamcity - (server | agent) -log4j.xml file to delete all lines containing the comment. After that, DEBUG Messages will be teamcity - *. log files.

Make sure the logs are turned by default. When debugging is enabled, it makes sense to increase the maxBackupIndex value in the corresponding appender tag for 10 or even 20 files (make sure that there is sufficient free disk space).

... which I got from docs . And then you can see what happens.

+3
source

Source: https://habr.com/ru/post/1709341/


All Articles