cargo testFirst, make sure the app is built:
cargo buildThen run the screenshot script:
./scripts/screenshot.shThis will:
- Start rgitui with the test repo (default:
~/repos/test-repo) - Wait 3 seconds for the window to render
- Take a screenshot using
grim(Wayland) orscrot(X11) - Save to
test_output/screenshot_TIMESTAMP.png - Kill the app
Copy .env and adjust:
RGITUI_TEST_REPO=/path/to/your/test/repochmod +x scripts/screenshot.shScreenshots in test_output/ can be loaded using the Read tool to visually verify the UI appearance during development.
Tests are in crates/rgitui/tests/integration_test.rs and test:
- Repository can be opened with git2
- Graph layout algorithm produces valid output for empty and real repos
- Binary artifact exists after build (ignored, run manually)
| Variable | Default | Description |
|---|---|---|
RGITUI_TEST_REPO |
$HOME/repos/test-repo |
Path to git repo used for integration tests |