Closed seanfirefox closed 1 year ago
Never mind, I have resolved it by upgrading all testfx
and monocle
dependencies to the latest versions.
Never mind, I have resolved it by upgrading all
testfx
andmonocle
dependencies to the latest versions.
Thanks for sharing this, @seanfirefox Could be useful to others attempting to use TestFx.
Just for more sharing, I used testFxVersion 4.0.16-alpha
and used the monocle
version below.
testImplementation group: 'org.testfx', name: 'openjfx-monocle', version: 'jdk-12.0.1+2'
Also ended up with the below code for my build.gradle
.
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
jvmArgs "-Dheadless=${project.hasProperty('headless') ? project.headless : false}"
systemProperties = [
'testfx.robot': 'glass',
'testfx.headless': 'true',
'prism.order': 'sw',
'prism.text': 't2k',
]
}
I attempted to use the GUI tests from AB4 and encountered illegal reflective access errors, presumably from testfx.
Anyone knows a workaround it? I have tried to set in
build.gradle
to allow this to pass but without any success.