test: add unit tests and E2E integration tests#31
Merged
CalvinAllen merged 2 commits intomainfrom Jan 9, 2026
Merged
Conversation
Unit Tests: - Add 21 tests for config parsing (was 2) - Test shorthand and full task parsing - Test env, dir, steps, parallel parsing - Test task delegation - Test task_names() and get_task() - Test edge cases (colons in names, empty env) - Fix parallel parsing by adding deny_unknown_fields to StepDef E2E Integration Tests: - Add integration-test.yml workflow - Test on Linux, macOS, Windows - Add test fixtures: - basic: shorthand, full tasks, env vars - steps: sequential, delegation, parallel - nested: subdirectory task delegation - Test --help, --version, --list - Test task execution with output verification - Test error cases (nonexistent task)
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
Significantly improve test coverage with unit tests and E2E integration tests.
Unit Tests (21 tests, was 2)
Bug fix: Added
#[serde(deny_unknown_fields)]toStepDefto fix parallel block parsing.E2E Integration Tests
New workflow:
integration-test.ymlTest Fixtures:
tests/fixtures/basic/- shorthand, full tasks, env varstests/fixtures/steps/- sequential, delegation, paralleltests/fixtures/nested/- subdirectory task delegationTests:
--help,--version,--listTest Plan
cargo testpasses locally (21 tests)cargo clippypasses