Skip to main content

torrust_tracker_deployer_lib/testing/
mod.rs

1//! Testing utilities and fixtures
2//!
3//! This module provides reusable test fixtures and helpers for testing
4//! various components of the application.
5//!
6//! ## Module Structure
7//!
8//! - `e2e` - End-to-end testing infrastructure and scenarios (includes black-box CLI testing)
9//! - `integration` - Integration testing utilities
10//! - `fixtures` - Reusable test fixtures
11//! - `mock_clock` - Mock clock implementation for deterministic time testing
12//! - `network` - Network testing utilities (port checking, connectivity testing)
13//! - `recording_progress_listener` - Records progress events for test assertions
14
15pub mod e2e;
16pub mod fixtures;
17pub mod integration;
18pub mod mock_clock;
19pub mod network;
20pub mod recording_progress_listener;
21
22// Re-export commonly used testing types
23pub use mock_clock::MockClock;
24pub use network::{PortChecker, PortCheckerError, PortUsageChecker, PortUsageError};
25pub use recording_progress_listener::{ProgressEvent, RecordingProgressListener};
26
27// Re-export E2E types for convenience
28pub use e2e::{
29    container::Services,
30    containers::{ContainerError, RunningProvisionedContainer, StoppedProvisionedContainer},
31    context::{TestContext, TestContextType},
32};
33
34// Re-export black-box testing types for convenience
35pub use e2e::{ProcessResult, ProcessRunner};