TeamCity
 
You are viewing the documentation for an earlier version of TeamCity.

Ant

Last modified: 20 April 2023

Support for Running Parallel Tests



By using the <parallel> tag in your Ant script it is possible to have the JUnit and TestNG tasks run in parallel. TeamCity supports this and should concurrently log the parallel processes correctly.

Ant Runner Settings



Ant Parameters



Java Parameters



Test parameters



Tests reordering works the following way: TeamCity provides tests that should be run first (test classes), after that when a JUnit task starts, it checks whether it includes these tests. If at least one test is included, TeamCity generates a new fileset containing included tests only and processes it before all other filesets. It also patches other filesets to exclude tests added to the automatically generated fileset. After that JUnit starts and runs as usual.

Code Coverage



To learn about configuring code coverage options, please refer to the Configuring Java Code Coverage page.