I built an SBT project to manage building and running my Gatling code.
I included ScalaTest so I could write unit tests for the reusable pieces of my Gatling code.
From the command-line, the unit tests work fine. But when I try to run them from IntelliJ, I get an error:
Unable to load a Suite class. This could be due to an error in your runpath. Missing class:
I found this: https://stackoverflow.com/questions/18838012/unable-to-load-a-suite-class-while-running-scalatest-in-intellij which includes a solution provided by someone who found the same problem when working with Gatling, which involved changing the Test output path configuration. Which lead to another problem: https://stackoverflow.com/questions/25513788/intellij-cant-find-classpath-test-resource, which has a solution, but that solution is overridden whenever IntelliJ re-imports my build.sbt file.
Has anybody else encountered this problem and successfully resolved it permanently?