So far I have managed to get testFx working locally but it doesn't work in CI environment since it's headed (similar issue to #521).
I have been trying to set up openjfx-monocle (v17.0.10 for OpenJDK 17) but to no avail. Is there any other cross-platform alternatives for headless testing? Has anyone managed to do headless UI testing so far?
And I'm getting the following error at runtime when the tests are run
java.lang.RuntimeException: java.lang.IllegalAccessError: superclass access check failed: class com.sun.glass.ui.monocle.MonoclePlatformFactory (in unnamed module @0x728938a9) cannot access class com.sun.glass.ui.PlatformFactory (in module javafx.graphics) because module javafx.graphics does not export com.sun.glass.ui to unnamed module @0x728938a9
So far I have managed to get testFx working locally but it doesn't work in CI environment since it's headed (similar issue to #521).
I have been trying to set up openjfx-monocle (v17.0.10 for OpenJDK 17) but to no avail. Is there any other cross-platform alternatives for headless testing? Has anyone managed to do headless UI testing so far?
My
build.gradle
And I'm getting the following error at runtime when the tests are run