user3334871
user3334871

Reputation: 1361

Specify test folder in Jenks

I'm using Jenkins to build my project, and AgitarOne tool to generate my JUnit test cases for my classes. However, when I build my project in Jenkins, it does not use the AgitarOne tests. Is there a way to configure jenkins to look at a test folder other than what is in src/test?

Upvotes: 1

Views: 1476

Answers (1)

Brandon McKenzie
Brandon McKenzie

Reputation: 1685

To change your test directory to a non-standard location, you'll need to change the testSourceDirectory on your pom (the answer to How to run UnitTests in maven which is in src/test-integration/java folder has a very good explanation of this, as well as buildhelper usage to achieve your goals).

Upvotes: 2

Related Questions