开发者

Is there some settings in Maven or Bamboo to restrict the tests to run in the same JVM as Bamboo rather than running in a seperate JVM?

I use Bamboo and Maven for continuous integration and running tests. Where ever scheduled/dependent maven tests run in Bamboo, it creates a new JVM. I have a huge no. of test for each project configured in Bamboo. There are as many as 20 projects, all have tests specific to them. So JVM number also increases, that makes the开发者_运维知识库 server less responsive, since multiple JVM increases the memory footprint.

Is there any settings in Maven or Bamboo to restrict the tests to run in the same JVM as Bamboo rather than running in a separate JVM?


You can set this in Maven surefire-plugin:

http://maven.apache.org/plugins/maven-surefire-plugin/examples/forking.html

You have the following choices:

  • forkMode=never
  • forkMode=once
  • forkMode=always
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜