Feb152013

Run All Unit Tests in Team City

It's the simple things in life that make it enjoyable. One of them being able to configure your build server to automatically include all unit tests when it builds a release.

Until recently, we were manually adding each unit test library that we wanted to run to TeamCity's configuration. Apparently, though, it does support wild cards:

Creating a Build Step to Run All Unit Tests

Since we follow a standard naming convention for our unit (and integration) tests, it's easy to include all of them by putting a wild card filter: **\bin\Release\*UnitTest*.dll.

Found via Stack Overflow.