Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b4e5a8f

Browse files
committed
Run tests with an X virtual framebuffer (1024x768)
The GitHub-hosted runner is a virtual machine hosted by GitHub. Xvfb on that setup defaults to a virtual screen size of 640x480 (XVFBARGS='-screen 0 640x480x16') which in turn makes the Arduino user interface tests fail with exceptions like this: [junit] org.fest.swing.exception.ActionFailedException: The component to click is out of the boundaries of the screen [junit] at org.fest.swing.exception.ActionFailedException.actionFailure(ActionFailedException.java:33) [junit] at org.fest.swing.core.RobotEventGenerator.pressMouse(RobotEventGenerator.java:74) Setting the xvfb screen size to 1024x768 solves this error.
1 parent ab8471d commit b4e5a8f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎.github/workflows/ant.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
run: |
1919
sed -i 's#<input .*/>##' build.xml
2020
ant clean dist
21+
- name: Install X virtual framebuffer
22+
run: sudo apt-get install -y xvfb
2123
- name: Run tests
2224
working-directory: ./app
23-
run: ant test
25+
run: xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" ant test
26+
- name: Cleanup xvfb
27+
uses: bcomnes/cleanup-xvfb@v1

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /