To run a ScalaTest test in IntelliJ, you have to add a run configuration. Most Intellij users probably know how to do this, but for those who don't, here are the steps.
- Click "Edit Configurations" in the Run menu dropdown (right next to the green play arrow).
- Click the + button to add a new run configuration. This brings up a dropdown containing different runners.
- ScalaTest is in the list, choose it.
- Fill in the classname of your test by typing it, or selecting the "..." button to bring up the class finder dialog.
- Click ok.