I am having issues using breakpoint in IntelliJ in...
# kotlintest
c
I am having issues using breakpoint in IntelliJ integration tests /w kotlintest. My app is written with springboot and I am using the
SpringListener
stuff. The app is also built on coroutines, and I am trying to put a breakpoint in a suspend function. Is there a known issue around my use case that anyone has heard of? To be clear my test does work when I just run it, and I am able to put breakpoints in the non-coroutine parts of my code.
l
Not that we know of. Is this change on coroutines recent?
c
Maybe? With this project I have never been able to do it. This weekend I will try to throw together a small app demonstrating the issue I am having. My versions are as follows: springBootVersion=2.1.2.RELEASE, coroutineVersion=1.2.1, kotlintestVersion=3.2.1, kotlinVersion=1.3.31
l
Check if you have the
out
folder created
Sometimes IntelliJ won't update the compiled classes, and this kind of thing will happen
c
Looks like the folder and all the files are there that should be, good idea to check that though. I had not heard of that b4
l
It happens to me all the time. It's not specific to KotlinTEst
Sometimes I run a test and intellij will say "This class doesn't exist"
It's because it has the old class instead of the new one