I\'m having some issues today with running a simple TestKit test in Intellij. The tests are for Scala code (I have the Scala plug-in for Intellij) and are based on Ray Roes
Simply running build project worked for me.
I met this issue when I used Gatling
I fix it by replacing gatling-classes
to test-classes
on File -> Project Structure -> Modules -> Module Name -> Paths -> Test output path
This issue happened to me recently when I was trying to run tests in an inherited Scala project using IntelliJ IDEA 2018 (Community Edition). Below steps helped me to fix it:
Output path: /home/rustam/IdeaProjects/{project}/{module}/target/scala-2.12/classes
Test output path: /home/rustam/IdeaProjects/{project}/{module}/target/scala-2.12/test-classes
In my case I had in Preferences -> Build, Execution, Deployment -> sbt
Use sbt shell for build and import
checkbox enabled
And the test was not in the expected directory src/test
but in src/it
(integrated test).
Run build the project - It helped me to resolve that issue that could have happened to me when I cleared Cache IDEA :) while trying to tackle another issue
I encountered the error when the test class was not part of any package.