1

In my test package, I have both regular unit tests and testfx test. When I try to run the entire test package, those testfx tests all failed and give the following exception:

org.junit.AssumptionViolatedException: Cannot run JavaFX in headless environment

Does anyone one knows how to run testfx tests alone with other unit tests?

  • Quoting the TestFX-project: "Headless testing using Monocle", do you have a correct setup for this? Maybe duplicate of: https://stackoverflow.com/q/27403410/1961102 – FibreFoX Jul 13 '17 at 16:16

0 Answers0