X11 tests under Xvfb, a test of the X11 window, and coverage #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bcox/ci-xvfb-coverage"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
-noreset) and passes it asDISPLAY. Before this,x11_clipboard_testskipped everywhere.x11_window_test. It acts as the window's host: it gives the window a parent, sends it pointer, wheel, key, expose and leave events, resizes the parent and reads the window's pixels back. A View that records its calls shows what arrived.DISPLAYset but unreachable, the X11 tests now fail. WithoutDISPLAYthey still skip.bazel coverageis configured in.bazelrc.tools/coverage.shwritescoverage/, and on a pull request acoveragejob after the lanes posts the coverage of the changed lines here.Results
Line coverage goes from 65.3% to 89.3%.
x11_window.ccgoes from 0% to 85.6% andx11_clipboard.ccfrom 0% to 73.9%.Testing
-Werror, opt, asan, ubsan, tsan) and the coverage step ran in an amd64debian:12container withtools/ci_test.sh, exactly asci.ymlruns it. All passed, and no X11 test skipped.🤖 Generated with Claude Code
Diff Coverage
Diff: origin/main...HEAD, staged and unstaged changes
No lines with coverage information in this diff.
Whole suite: 89.3% 1924/2154 total. Every file: the coverage-html artifact of this run.
64185e8b34708180317eDiff Coverage
Diff: origin/main...HEAD, staged and unstaged changes
No lines with coverage information in this diff.
Whole suite: 89.3% 1924/2154 total. Every file: the coverage-html artifact of this run.