Environment
I'm currently trying to run JavaFX GUI tests via xvfb
on multiple environments on Travis CI. I'm using Gradle to run these tests while using the TestFX and NestedRunner testing frameworks to write them. Before running the tests, export DISPLAY=:99.0
is called.
Context
There are times when the build succeeds and other times when it fails. However, I've noticed that Gradle outputs a single line that I can use to predict when the build will succeed or fail.
Before that line appears, one will see the following in the Travis CI log:
:richtextfx:compileJava
:richtextfx:processResources
:richtextfx:classes
:richtextfx:compileTestJava
:richtextfx:processTestResources
:richtextfx:testClasses
After that, one of two lines appears that predicts whether the build will succeed/fail:
- on success:
:richtextfx:testXlib: extension "RANDR" missing on display ":99.0".
- on failure:
:richtextfx:test
My Question
Why does Gradle change the test
task to testXlib
task? What are the inner mechanisms that handle this? And what does it all mean?