Parallel execution of tests

前端 未结 5 486
孤独总比滥情好
孤独总比滥情好 2021-01-01 12:20

I\'ve noticed that SBT is running my specs2 tests in parallel. This seems good, except one of my tests involves reading and writing from a file and hence fails unpredictabl

5条回答
  •  离开以前
    2021-01-01 12:53

    Other answers explained how to use make them run sequential.

    While they're valid answers, in my opinion it's better to change your tests to let them run in parallel. (if possible)

    In your example - use different files for each test. If you have DB involved - use different (or random) users (or whatever isolation you can) etc ...

提交回复
热议问题