Sbt supports setup & cleanup actions for tests
using Tests.Setup
and Tests.Cleanup
in the testOptions
setting.
IntelliJ supports running tests straight from the code editor,
but currently it won't run the Tests.Setup
and Tests.Cleanup
steps - for IntelliJ users this can lead to
intermittent test failures that are surprising to users who aren't aware of both the custom sbt configuration, and
the fact that IntelliJ won't run those test actions (e.g.
scala-steward #3101).