Skip to content

Create test file for each command, move dryrun tests there#363

Merged
jdalton merged 1 commit intomainfrom
command-tests
Mar 14, 2025
Merged

Create test file for each command, move dryrun tests there#363
jdalton merged 1 commit intomainfrom
command-tests

Conversation

@pvdz
Copy link
Contributor

@pvdz pvdz commented Mar 14, 2025

  • Move the dry-run tests from one file to individual files per command
  • Add --help test to each command as well
  • Add a check that passes input requirements to assert it properly bails

The single dry-run file was taking 30s and this change makes the same tests complete in about 10 even though they do about 2.5x the number of syscalls, just because they can be parallelized. What's not to like.

And it's a bit easier to check whether every command has this test now, since it's sitting adjacent to the file rather than disjoined tucked away in a test file.

@pvdz pvdz requested a review from jdalton March 14, 2025 13:17
@jdalton jdalton merged commit 0f7a63c into main Mar 14, 2025
17 checks passed
@jdalton jdalton deleted the command-tests branch March 14, 2025 13:35
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.

2 participants