LoginSignup
0
1

More than 5 years have passed since last update.

Circle CIのmvn integration-testをmvn testに変更する

Last updated at Posted at 2016-09-25

Circle CIでは、mavenを利用している場合のtestはデフォルトでmvn integration-testになる。
公式のこの辺りに書いてある

別にこのままでも良かったんだけど、ちょっとテストの実行時間をもう少し短縮できないものかと思って、mvn testに変えてみることにした。circle.ymlに以下を追加するだけ。
公式のこの辺りに書いてある

circle.yml
test:
  override:
    - mvn test

ちなみに、mvn integration-testとmvn testでテストを4回ずつ回した時の平均実行時間は以下のようになった。

テストコマンド 平均実行時間
mvn integration-test 38.75秒
mvn test 33.25

約5秒短縮された。MAXで8秒の短縮が見られた。

※mvn integration-test
無題.png

※mvn-test
無.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1