Search code examples
scalaintellij-ideascalatest

Execute multiple Scalatests in IntelliJ


I have multiple IntelliJ (Scala) modules that have build.sbt file and scalatest code.

I also created ScalaTest configurations for each of them.

enter image description here

I can run the test one by one, but is it possible to run all of them at once?


Solution

  • I guess for executing multiple tests, one may need to use sbt aggregation as is explained in Execute multiple Scalatests in sbt.

    In IntelliJ IDE, we can just use the ScalaTest for testing and debugging a test for one module.

    Using batch mode, one can easily execute the multiple tests with sbt.

    Adding module dependency information in sbt's build.sbt file