Repository navigation
Closed
Description
Parent Issue: #113 - Create Dependency Installation Package for E2E Tests
Depends On: None (first phase)
Epic: #112 - Refactor and Improve E2E Test Execution
Overview
Create the package structure and implement detection logic to check if development dependencies (cargo-machete, OpenTofu, Ansible, LXD) are installed.
This is Phase 1 of 4 for building the dependency installation package.
Objectives
- Create packages/dependency-installer/ structure following packages/linting/ pattern
- Define ToolDetector trait for detection abstraction
- Implement 4 detector structs (CargoMachete, OpenTofu, Ansible, LXD)
- Create DependencyManager to coordinate detectors
- Add comprehensive unit tests with mocked commands
- Set up tracing for observability
Key Components
ToolDetector Trait:
trait ToolDetector {
fn name(&self) -> &str;
fn is_installed(&self) -> Result<bool, DetectionError>;
}4 Detector Implementations:
- CargoMacheteDetector - checks
cargo machete --version - OpenTofuDetector - checks
tofu --version - AnsibleDetector - checks
ansible --version - LxdDetector - checks
lxc --version
DependencyManager:
- Coordinates all detectors
- Provides
check_all()method returning status for all tools
Acceptance Criteria
- Pre-commit checks pass
- Package structure follows linting package pattern
- ToolDetector trait is well-defined
- All 4 detectors are implemented with proper error handling
- DependencyManager works correctly
- Unit tests cover all detectors with mocked commands
- Logging provides clear visibility
Time Estimate
2-3 hours
Related Documentation
- Full specification: docs/issues/114-1-1-1-create-detection-logic-package.md
- Linting package reference: packages/linting/
- Error handling guide: docs/contributing/error-handling.md
Reacted by Copilot
Activity
docs: add GitHub issues for E2E test refactoring EPIC
feat: [#114] create detection logic package
docs: [#114] add documentation for platform support and detector crea…
feat: [#114] add example demonstrating dependency checking
fix: [#114] use inline format args in example
refactor: [#114] rename tests to follow it_should_ convention
Merge #122: Create detection logic package for development dependencies
Merge #130: feat: [#115] Add CLI binary for dependency checking
chore: remove closed issue documentation files