We have 84 times this kind of exceptions in 'ajde' tests in our build
logs on GitHub, even though the tests seem to pass:
HeadlessException: No X11 DISPLAY variable was set,
but this program performed an operation which requires it.
I found this discussion:
https://github.com/juliangruber/browser-run/issues/147
And then this GitHub Action:
https://github.com/marketplace/actions/gabrielbb-xvfb-action
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
run: ./mvnw -B -DskipTests package --file pom.xml
- name: Run Tests
- run: ./mvnw -B -Daspectj.tests.verbose=false verify --file pom.xml
+ # Tests in module ajde call Swing/AWT classes. Without frame buffer they throw
+ # HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.
+ uses: GabrielBB/xvfb-action@v1
+ with:
+ run: ./mvnw -B -Daspectj.tests.verbose=false verify --file pom.xml