Just another day wishing that Quarkus worked with ...
# kotest
g
Just another day wishing that Quarkus worked with Kotest pepecry (I actually don't understand why it doesn't, since Quarkus apparently uses JUnit lifecycle/extension methods and Kotest is compatible with them)
💯 1
e
Personally never worked with Quarkus, so would be hard to help..
g
I actively contribute to Quarkus, but the JUnit extension is written/maintained primarily by one person and it's quite a bit of code. Started a discussion about it on Quarkus' side (just over a year ago today!) but nothing ever came of it unfortunately =/ https://github.com/quarkusio/quarkus/issues/19749
s
The quarkus junit stuff seems to do a lot of magic classpathy stuff. What they really need to do is make it test framework agnostic.
g
Maybe I'll burn another weekend on it this week, I love Kotest but in particular the Testcontainer extension API is too nice to miss out on
s
Happy to spend time on this too, but I looked at the existing junit quarkus stuff and it's not for someone who doesn't know or use quarkus imo. Maybe if they started just pulling it out into not a huge class it would help understanding of it.
Spring keeps it well abstracted, and so it's easy (ish) to plug into Spring. Eg they have their own before/after test interfaces, so junit and kotest can both map to that.
g
Aye, something like:
Copy code
public class JunitTestRunner implements QuarkusTestRunner {}
Instead of just
Copy code
public class JunitTestRunner
s
yes
g
Will have to try to figure out how you can debug the test runner, I wasn't sure how to do this Not sure if putting breakpoints in the runner source and launching gradle would work, doesn't seem like it would be so easy
e
You would probably need to attach the debugger to the right pid, but it should be doable
114 Views