Skip to content

test: update and expand Drivelution test coverage#301

Merged
JusterZhu merged 1 commit into
masterfrom
fix/update-drilevolution-tests
May 23, 2026
Merged

test: update and expand Drivelution test coverage#301
JusterZhu merged 1 commit into
masterfrom
fix/update-drilevolution-tests

Conversation

@JusterZhu
Copy link
Copy Markdown
Collaborator

Summary

Update existing tests broken by the 9-PR refactoring API changes, and add comprehensive tests for new components.

Fixed tests (3)

  • QuickUpdateAsync: CancellationToken moved to 4th position after merged overloads
  • GetPlatformInfo: macOS IsSupported now returns true
  • Factory: CreateValidator/CreateBackup now work on macOS

New tests (20)

  • RetryPolicyTests (8): defaults, retry on failure, no-retry-on-cancellation, ExecuteWithRetryAsync, FromOptions
  • PipelineContextTests (3): construction, bag storage, null guards
  • PipelineResultTests (3): Ok/Fail/exception storage
  • BaseDriverUpdaterTests (11): full pipeline with mocks, progress, events, timeout, backup, batch sequential/parallel
  • CommandResultTests (3): exit code, success, ToString
  • NewModelTests (4): UpdateProgress, BatchUpdateResult, DriverUpdateEntry

Results

144 passed, 0 failed, 0 skipped

…ponents

Fixed 3 existing tests broken by API changes:
- QuickUpdateAsync: CancellationToken moved from 2nd to 4th parameter (merged overloads)
- GetPlatformInfo: macOS now returns IsSupported=true
- Factory: CreateValidator/CreateBackup now work on macOS

Added 20 new tests across 6 files:
- Pipeline/RetryPolicyTests: 8 tests (defaults, retry, cancellation, backoff, options)
- Pipeline/PipelineContextTests: 3 tests (construction, bag storage, validation)
- Pipeline/PipelineResultTests: 3 tests (Ok/Fail/exception)
- Pipeline/BaseDriverUpdaterTests: 11 tests (update, progress, events, timeout, backup, batch, validation)
- Execution/CommandResultTests: 3 tests
- Models/NewModelTests: 4 tests (UpdateProgress, BatchUpdateResult, DriverUpdateEntry)

Test results: 144 passed, 0 failed, 0 skipped
Copilot AI review requested due to automatic review settings May 23, 2026 11:57
@JusterZhu JusterZhu merged commit 3bb0aa0 into master May 23, 2026
1 check failed
@JusterZhu JusterZhu deleted the fix/update-drilevolution-tests branch May 23, 2026 11:58
@JusterZhu JusterZhu review requested due to automatic review settings May 23, 2026 12:19
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