Repository navigation
microskills: read cargo nextest run as a test run - #379
Open
Lanre Shittu (Shizoqua) wants to merge 1 commit into
Open
Lanre Shittu (Shizoqua) wants to merge 1 commit into
Lanre Shittu (Shizoqua) wants to merge 1 commit into
Conversation
cargo-nextest runs a Rust project's tests with cargo nextest run, or its alias cargo nextest r. The loop guard counts it as a test run, but the observer read it as a call to the package tool cargo, so its runs never showed that the form works. It is now a test run with the form cargo nextest run in the generic reading; its summary (N tests run: N passed, ...) already reads as tests that ran. cargo nextest list and archive run no tests and read as before.
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.
The observer read
cargo nextest runas a call to the package toolcargo, while the loop guard counts it as a test run. cargo-nextest runs a Rust project's tests withcargo nextest run, or its visible aliascargo nextest r, so a nextest run never showed that its form works, and its form was pooled with every othercargocommand's.Fix: in the generic reading,
cargo nextest runandcargo nextest rare a test run with the formcargo nextest run. Its summary (3 tests run: 3 passed, 0 skipped) already reads as tests that ran.cargo nextest listandarchive, which run no tests, and the othercargocommands read as before, and the Python vocabulary is unchanged. Over the 5,974 strings in the test suites, none is classified differently.Tests, in a new
tests/test_observe_cargo_nextest.py:cargo nextest run, its aliasr, with options, a path tocargoor acd, is a test run with its form, as the loop guard reads it (fail on main);cargo nextest list,archiveandshow-configare not, andcargo test,cargo buildandcargo addread as before;cargo.The skips need Windows, a real agent CLI (Codex, Hermes, opencode) or aider, or a non-root user.
Fixes #378