Can someone point me at a good example of a cljfx project that has a good test suite? I need to learn by example a bit on this since extensive test coverage is something I'm still learning how to do well
I haven’t seen one TBH
at least haven’t really seen testing the GUI bits
Hrm. Because I thought that was the point of the example in E18
maybe it’s just me, and others do test the GUI behavior, but I don’t really use effects/co-effects any more
IIRC I already mentioned this in some other discussion above…
though e18 does show a way that maybe could be used to do data-driven tests for GUI
BTW have you seen the hn reader app example?
Similar to e18, but also has github actions workflows to build the distributables for the desktop platforms.
Oooo! I need the github actions soon anyway! lol
It's probably fine. I'm testing the rest of it pretty extensively, so that should be fine.
I’ve been meaning to expand and open source our wrapper for TestFX but don’t do cljfx regularly anymore. If you can make use of this you’re welcome. Just needs a reference to your app’s stage and can out the setup and tear down in a fixture.
Only covers the basic interactions we needed, and adds some clojure.test assert expressions so you can say (is (visible? “[css selector]”)) etc in tests.
At the very least it’d show you how to get hook into TestFX yourself. I seem to remember some faff compiling our own version of Monocle to get this working with newer JDKs.
Awesome, thank you. That's helpful too