Intellij
- project structure -> make sure sdk is correct
- for scala, use jdk 11 as 17 caused me issues
run tests using sbt
- Settings / Preferences
- Build, Execution, Deployment → Build Tools → sbt
- Set:
- Run tests using: sbt
- Build using: sbt
- Restart IntelliJ after changing this.
- Now:
- Clicking ▶️ runs sbt testOnly
- Your build.sbt JVM options apply
- Behavior matches Docker and terminal