New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IJ] AnyWordSpec doesn't run single test #2235
Comments
I got the same on Mac OSX, IntelliJ with Scala Plugin |
@sorenmarkert @dhinojosa Hmm, weird, I can't reproduce the problem on my ubuntu laptop, I am using Scala 2.13 and ScalaTest 3.2.16 though. |
@cheeseng, I'll rerun it. My project is Scala 3.3.0 and ScalaTest 3.2.15 Results: This will pass which is incorrect class MessagingUtilsTest extends AnyWordSpec with Matchers:
"A" should {
"B" in {
"aa" should be ("bb")
}
} |
Hmm, now it works when I didn't do anything. Heisenbug? |
I fell down the rabbit hole @cheeseng LOL
The test is not marked to run and therefore shows Success. If should probably be a failure since no tests actually ran. |
Scala 3.2.2
ScalaTest 3.2.15
Example:
Steps to reproduce:
Specifically run that single test: In IntelliJ, place cursor in the inner body (e.g. on 'shouldBe') and run test via keyboard shortcut (CTRL-SHITF-10 with Gnome layout).
Result:
The test process runs, but no actual test is run in it.
Doing any of the following will make it run correcltly:
Bonus issue:
Placing the cursor on the imports, and running tests by keyboard shortcut does nothing at all.
The text was updated successfully, but these errors were encountered: