Test Automation - FXMisc/RichTextFX GitHub Wiki
RichTextFX uses TestFX (version 4) to implement UI centric automated tests (integration tests).
Note: while the tests are running (if you are not using a dedicated headless display), keep your hands off the mouse and keyboard - otherwise, mouse and keyboard interactions will interfere with the test execution!
Running the tests in Eclipse
The tests can be run in Eclipse like other JUnit based unit tests. To run the complete test suite, select the src/integrationTest/java
folder below the richtextfx project and select "Run as => JUnit Test" from the context menu.
NOTE: (At least on Windows), the tests require the "glass" robot adapter to run successfully. Make sure to define the property -Dtestfx.robot=glass
when launching a test.
Running the tests with gradle
To run the TestFX tests from the command line, use
$ gradle integrationTest