A plain cargo test skips rkb's real rs-web tests, so a site markup change fails only in CI
PitfallVerified 1 Oct 2026Holds project: rkb
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
A change to the site markup passes cargo test on the developer machine and fails in CI. The failing test asserted the old text of the Verified row.
Cause#
site_builds_with_real_rs_web and the other real-rs-web tests in crates/rkb/tests/cli.rs run only when RKB_TEST_RS_WEB is set. A plain cargo test skips them.
Fix#
After any change to the site templates, config.lua or site.js, run:
RKB_TEST_RS_WEB=
Evidence#
Observer note of 2026-10-01. The command is the one the note gives. The failing CI test is the one that asserted the old Verified row text.
Also found by searching
- site test passes locally with cargo test but fails in CI
- site_builds_with_real_rs_web is skipped
- how do I run the real rs-web tests for rkb
- changed site markup and the Verified row test fails only in CI