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

后端 未结 5 2148
死守一世寂寞
死守一世寂寞 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:48

    Another possibility, based on https://stackoverflow.com/a/27068019/1922026, is to define a command alias in the root project:

    .settings(addCommandAlias("test", ";s1/test;s2/test;s3/test"): _*)
    

    where s1, s2 and s3 are the sub-projects. When you are in root project and run "test" the tests will be executed sequentially and in the order defined.

提交回复
热议问题