Running individual ScalaTest test methods in IntelliJ IDEA
You can generate a run configuration for a specific flatspec test by putting your cursor into the test, and from the Run menu select Run...
(option+Shift+F10 on mac), and near the top will be an entry for the specific test.
You can manually generate the run configuration by selecting your test class as normal, then copying in the test name (The "foo" in "foo" should "bar" in...
) into the Test Name
field
I use IntelliJ IDEA 13 and I am able to run single test when I use FunSuite
- put cursor in a test and press Alt + Shift + F10 and the test is there. It is not possible with FlatSpec
tests.
It has been added recently and I remember it wasn't working in version 12 even for FunSuite
.
I had the same problem. It shows up, if you have space in the first word
"test " should "..."
When i removed space, the test starts to run