test: audit pass — trim redundant tests, cover last-failed with filter#667
Closed
MatthewMckee4 wants to merge 1 commit intomainfrom
Closed
test: audit pass — trim redundant tests, cover last-failed with filter#667MatthewMckee4 wants to merge 1 commit intomainfrom
MatthewMckee4 wants to merge 1 commit intomainfrom
Conversation
…r coverage Removes two non-snapshot fail-fast tests in basic.rs that duplicated the existing snapshot-based coverage, deletes trivial unit tests in function_kind.rs and a helper-formula test module in orchestration.rs that was testing a copy of the production logic, and adds an integration test covering the last-failed plus filterset workflow.
Merging this PR will not alter performance
|
Member
Author
|
Superseded by #670 |
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
Focused test-suite audit. Three deletions of redundant or convention-violating tests and one added integration test for a real coverage gap.
Changes
Deleted
test_fail_fastandtest_fail_fast_across_modulesinbasic.rs— they asserted onstdout.contains(...)instead of usinginsta_cmd::assert_cmd_snapshot!, and were already covered bytest_failfastandtest_failfast_multiple_threads.Deleted the unit-test module in
karva_runner/src/orchestration.rsthat tested a localeffective_workershelper reimplementing the worker-capping formula. It never touched the realrun_parallel_testspath — a bug in production code couldn't have failed those tests. The integration testtest_parallel_worker_cappingalready covers the real path end-to-end.Deleted the two trivial
FunctionKind::capitalised()unit tests inkarva_python_semantic/src/function_kind.rs.Added
last_failed_with_filter_narrows_rerun_setinit/last_failed.rs, covering the--last-failed+-Ecombination that had no integration test since the filterset DSL landed in #663.Follow-ups (bugs found, not fixed here)
karva test --dry-run -E …ignores filter expressions. Incrates/karva/src/commands/test/mod.rsthe dry-run branch runscollect_testsand prints everything beforeFiltersetSet::newis constructed.-qqsilent mode is unreachable from the CLI.Verbosity::level()only checksself.quiet > 0and returnsQuiet, soVerbosityLevel::Silentis never produced despite being advertised in help text.Test Plan