Codex Swing UI Tests in Headless CI
Make EasyPostman Swing tests report a clean skip when the CI worker has no display.
中文Install in Codex
Codex, the EasyPostman checkout, a JDK, and Maven.
- Copy the pinned `.codex/skills/swing-ui-test-headless-guard/` directory into `.agents/skills/swing-ui-test-headless-guard/` in the project.
- Select `$swing-ui-test-headless-guard` and identify the UI test class.
Example task
Add a sample test for a window title and compare results with and without `java.awt.headless=true`.What to check
The test runs with a display and reports a clear skip without one.
Original SKILL.md on GitHub · Updated
Frequently asked question
Should ordinary logic tests inherit the base class?
Limit the base class to Swing tests that need a display.