Skip to content

Reorganize integration test suite and refactor test utilities#309

Merged
DorianZheng merged 1 commit intomainfrom
refactor/reorganize-integration-tests
Feb 26, 2026
Merged

Reorganize integration test suite and refactor test utilities#309
DorianZheng merged 1 commit intomainfrom
refactor/reorganize-integration-tests

Conversation

@DorianZheng
Copy link
Copy Markdown
Member

Split pid_file.rs (21 tests, 4 concerns) into focused test files:

  • pid_file.rs: trimmed to 9 tests (PID file lifecycle only)
  • detach.rs: 5 tests for detach mode behavior (new)
  • recovery.rs: 7 tests for runtime recovery scenarios (new)
  • lifecycle.rs: removed 2 recovery tests (moved to recovery.rs)

Consolidate 5 edge-case unit tests into boxlite/src/util/process.rs and delete 4 duplicate integration tests that duplicated existing unit tests.

Refactor boxlite-test-utils into focused modules (home, cache, assertions, box_test, config_matrix, fault_injection, sync_point) and update all integration tests to use the shared infrastructure.

Split pid_file.rs (21 tests, 4 concerns) into focused test files:
- pid_file.rs: trimmed to 9 tests (PID file lifecycle only)
- detach.rs: 5 tests for detach mode behavior (new)
- recovery.rs: 7 tests for runtime recovery scenarios (new)
- lifecycle.rs: removed 2 recovery tests (moved to recovery.rs)

Consolidate 5 edge-case unit tests into boxlite/src/util/process.rs
and delete 4 duplicate integration tests that duplicated existing
unit tests.

Refactor boxlite-test-utils into focused modules (home, cache,
assertions, box_test, config_matrix, fault_injection, sync_point)
and update all integration tests to use the shared infrastructure.
@DorianZheng DorianZheng merged commit 28127b8 into main Feb 26, 2026
18 checks passed
@DorianZheng DorianZheng deleted the refactor/reorganize-integration-tests branch February 26, 2026 12:31
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