6

Using Sbt in order to run scalatest tests, you can put all test of a suite in parallel using the trait ParallelTestExecution and this works out of the box.

How to obtain the same result running scalatests tests inside Intellij Idea IDE? running test inside ide gives a better report and a colorful state of the results, better than sbt.

2
  • Did you find a solution for this? 4.5 years later, I have the same issue (i..e. I want my tests to run faster in the IDE by using all me processor cores).
    – mabead
    Commented Sep 14, 2023 at 1:44
  • @mabead no, i moved to pytest. Commented Sep 15, 2023 at 8:48

1 Answer 1

0

Adding the -P command line parameter to the scalatest invocation in your IntelliJ "Run/Debug Configuration" should do the job.

References:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.