Crate rust_test_harness

Crate rust_test_harness 

Source

Macros§

test_async
Macro to create individual async test functions (for when you add async support) Note: Hooks are only executed when using the main test runner, not individual macros
test_case
Macro to create test cases that work exactly like Rust’s built-in #[test] attribute but with our framework’s enhanced features (hooks, Docker, etc.)
test_case_named
Macro to create test cases with custom names (useful for dynamic test names)
test_function
Macro to create individual test functions that can be run independently This makes the framework compatible with cargo test and existing test libraries Note: Hooks are only executed when using the main test runner, not individual macros
test_named
Macro to create individual test functions with custom names Note: Hooks are only executed when using the main test runner, not individual macros

Structs§

ContainerConfig
ContainerInfo
DockerHandle
TestCase
TestConfig
TestContext
TimeoutConfig

Enums§

TestError
TestStatus
TimeoutStrategy

Functions§

after_all
after_each
before_all
before_each
cleanup_all_containers
clear_global_context
clear_test_registry
execute_after_all_hooks
Execute after_all hooks for individual test functions
execute_after_each_hooks
Execute after_each hooks for individual test functions
execute_before_all_hooks
Execute before_all hooks for individual test functions
execute_before_each_hooks
Execute before_each hooks for individual test functions
get_container_registry
get_global_context
register_container_for_cleanup
run_all
run_tests
run_tests_with_config
test
test_with_tags
test_with_timeout

Type Aliases§

HookFn
TestFn
TestResult