refactor: test suite overhaul (lib.rs split, snapshots, CI canaries)#9
Open
objz wants to merge 7 commits into
Open
refactor: test suite overhaul (lib.rs split, snapshots, CI canaries)#9objz wants to merge 7 commits into
objz wants to merge 7 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
First slice of a multi-phase test suite overhaul. Sets up the prerequisites and infrastructure every later phase needs, deletes a handful of tests that earned nothing, adds the first ratatui snapshot tests as a working pattern, and wires the existing
#[ignore]network tests into CI so they run on master pushes.The launch-flow integration test phase (the biggest coverage gain) is deliberately not in this PR. It depends on #8 (launch-args-rework) landing first since it needs to test the reworked launch pipeline.
What's in this PR
3cd530elib.rssplit;tests/scaffold; addinsta,wiremock,rstestdev-deps; one smoke integration test4fdbd034f8347cErrorPopup, 4 scenarios) usingTestBackend+instae56876fcargo test --ignoredon master pushes (covers the 12 live-API canary tests)be1857dlib.rsvisibility, drop speculativetests/common/mod.rs0d0852eINFO-level snapshot, renamenarrow_frame_clamps, add 5 unit tests forpopup_area()(the real logic in error.rs)71945afcontinue-on-error: truefrom CI canary step so failures actually red the buildWhat's not in this PR
tests/integration/) was reassessed and skipped. Most candidates test PRIVATE helpers (migrate::rename_top_level,worlds::world_description,desktop::build_content,mmc::parse_mmc_pack); moving them would force those internals to becomepub. The rest are single-function unit tests where moving adds zero coverage but adds compile-unit overhead. Rationale documented in the master plan.build_launch_invocationseam from the mergedlaunch()and writes 12-15 integration tests against fixtures.Test plan
cargo test: 202 lib + 1 smoke = 203 passing, 12 ignoredcargo build --release: clean./target/release/rmcl --help: binary works afterlib.rs/main.rssplitcargo test --lib -- --ignored: all 12 live-API canaries pass against real Mojang/Forge/NeoForge/Fabric/Quilt/Modrinth endpoints"ERROR"label to"FAIL", snapshot test caught the diff, revertedcargo clippy --all-targets -- -D warnings: cleanNotes on
instaworkflowWhen you intentionally change a popup visual:
Snapshot files live next to the widget source under
src/tui/widgets/popups/snapshots/. They are plain text and meant to be checked into git.Net delta