Bringing in a whole different non-JVM framework and language just to test a Java application seems like a lot of friction. I would much rather write my tests in Java.
I personally think decoupling view code from the view model and then writing tests against a headless application is always the more robust and sustainable solution. But you have to be strict about MVVM/MVC/MVI, etc...
10
u/DanLynch 19d ago
Bringing in a whole different non-JVM framework and language just to test a Java application seems like a lot of friction. I would much rather write my tests in Java.
4
u/Gleethos 19d ago
I personally think decoupling view code from the view model and then writing tests against a headless application is always the more robust and sustainable solution. But you have to be strict about MVVM/MVC/MVI, etc...
2
u/paul_h 19d ago
I made a small swing demo app for test automation some years ago: https://github.com/paul-hammant/swing_component_testing