Java Testing Frameworks Support
TeamCity supports JUnit and TestNG by means of following build runners:
Ant (when tests are run by junit and testng tasks directly within the script)
Maven2 (when tests are run by Surefire/Failsafe Maven plugins, on-the-fly reporting is not available.)
IntelliJ IDEA project: IntelliJ IDEA's JUnit and TestNG run configurations are supported. Note, that such run configurations should be shared and checked in to the version control.