How to turn off parallel execution of tests for multi-project builds?

后端 未结 5 2142
死守一世寂寞
死守一世寂寞 2020-12-08 10:03

I have a multi-project build with tests in sub-projects and in a parent project. The build is aggregated so that the parent project runs all tests in child projects.

5条回答
  •  再見小時候
    2020-12-08 10:41

    To restrict the number of concurrently executing tests in all projects, use:

    concurrentRestrictions in Global += Tags.limit(Tags.Test, 1)
    

    See sbt documentation

    See discussion

提交回复
热议问题