Skip to content

test(wave-1): sync skipped reasons + query repos regression guard#52

Open
juice094 wants to merge 2 commits into
mainfrom
test/wave-1-coverage
Open

test(wave-1): sync skipped reasons + query repos regression guard#52
juice094 wants to merge 2 commits into
mainfrom
test/wave-1-coverage

Conversation

@juice094
Copy link
Copy Markdown
Owner

Summary

Wave 1 of the v0.21.0 architecture hardening plan: close coverage gaps in high-touch CLI paths.

New tests

sync module (3 tests)

  • — verifies skipped reason='unmanaged'
  • — verifies produces reason='excluded'
  • — verifies produces reason='path_excluded' (cross-platform temp_dir for Windows compat)

query module (1 test)

  • — regression guard ensuring 'query repos' returns the full registry list, not just repos whose paths contain the literal string 'repos'

Verification

running 5 tests
test sync::tests::test_collect_tasks_default_mode_excludes_untagged ... ok
test sync::tests::test_collect_tasks_default_mode_includes_known_tags ... ok
test sync::tests::test_collect_tasks_exclude_reason ... ok
test sync::tests::test_collect_tasks_explicit_filter_includes_untagged ... ok
test sync::tests::test_collect_tasks_path_excluded_reason ... ok

test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 454 filtered out; finished in 0.01s — 5 passed

running 1 test
test query::tests::test_run_json_repos_returns_all ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 458 filtered out; finished in 0.00s — 1 passed

  • — clean

…path_excluded)

Wave 1 coverage: add 3 tests for the new SkippedRepoInfo return type.

- test_collect_tasks_default_mode_excludes_untagged: verify reason='unmanaged'
- test_collect_tasks_exclude_reason: verify --exclude produces reason='excluded'
- test_collect_tasks_path_excluded_reason: verify exclude_paths produces
  reason='path_excluded' (uses cross-platform temp_dir for Windows compat)
@juice094 juice094 force-pushed the test/wave-1-coverage branch from 109b570 to 0971f52 Compare May 15, 2026 05:54
…ories

Regression guard for the fix in PR #49: ensures that 'query repos'
short-circuits keyword filtering and returns the full registry list.
@juice094 juice094 force-pushed the test/wave-1-coverage branch from 0971f52 to a00cbac Compare May 15, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant