Testing Frameworks
Last modified: 20 April 2023TeamCity provides support for a number of testing frameworks. In order to reduce feedback time on the build failures TeamCity provides support for on-the-fly tests reporting where possible. On-the-fly tests reporting means that the tests are reported in the TeamCity UI as soon as they are run not waiting for the build to complete.
TeamCity directly supports the following testing frameworks:
JUnit and TestNG for the following runners:
Ant (when tests are run by
junit
andtestng
tasks directly within the script)Maven2 (when tests are run by Surefire Maven plugin; tests reporting occurs after each module test run finish)
IntelliJ IDEA Project project (when run with appropriate IDEA run configurations)
NUnit Support for the following runners:
NAnt (
nunit2
task)MSBuild (NUnit community or NUnit for MSBuild tasks)
Microsoft Visual Studio Solution runners (2003, 2005 and 2008)
Any runner, provided, TeamCity Addin for NUnit is installed.
Mstest support 2005, 2008, 2010 (On-the-fly reporting is not available due to MSTest limitations.)
Moreover, you can import XML reports of different testing frameworks with XML Report Processing.
There are also testing frameworks that have embedded support for TeamCity. e.g. .NET Testing Frameworks Support and .NET Testing Frameworks Support.
See also external TeamCity Plugins.
If there is no TeamCity support yet for your testing framework, you can report tests progress to TeamCity from the build via Build Script Interaction with TeamCity.
See also:
Concepts: Build State | Build Runner User's Guide: Viewing Tests and Configuration Problems Administrator's Guide: NUnit Support | MStest Support | NAnt
Thanks for your feedback!