IntelliJ: Scala breakpoints won't hurt

I am trying to debug a test in my Scala project.

IntelliJ successfully runs the tests, but breakpoints in the tests never hit.

Breakpoints inside the classes being tested fall during the test , so I assume the problem is with ScalaTest .

IDE screenshot

As you can see in the screenshot, breakpoints are set in different places in the tests, however IntelliJ does not recognize them and just finishes debugging.

Is there a way to get IntelliJ to hit breakpoints in scala tests?

UPD1:

I do not run tests using sbt , I run them using the scala IntelliJ plugin, for example:

Screenshot 2

+5
source share

Source: https://habr.com/ru/post/1259456/


All Articles