How to configure java junit with Teamcity?

Can someone please tell me how to integrate java JUnit with TeamCity?

+6
source share
2 answers

You can use the jUnit task in the Ant script that TeamCity is running with.

+2
source

The current version of Teamcity does not provide a separate build step for JUnit.

I assume this is due to the problem of defining a test class.

You can explicitly specify the path to the ant junit task classes.

Or Teamcity can get the class test path from IDEA or IPR . These two links explain how to run junit tests as part of the compilation build step.

0
source

Source: https://habr.com/ru/post/889507/


All Articles