简体   繁体   中英

How can I run ignored tests with TeamCity's NUnit runner?

I want to run all the ignored tests in my solution in a different build configuration in TeamCity. I didn't see any explicit why to do it in the build step configuration page.

Can it be done?

The Ignore attribute is the wrong thing to use here. It should be used for tests you do not wish to run at all. Try using Categories instead. TeamCity has two properties you can set within an NUnit build step.

NUnit categories include and NUnit categories exclude control which tests will be run.

How did you mark your tests - your question is not quite clear in this point? Did you use the Explicit or Ignored attribute? If the latter then these tests will not run at all.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM