Bienvenue sur la nouvelle documentation de CppUtils !
CppUtils::UnitTest::TestSuite::TestBuilderBase<class Derived, bool IsSkipped>
STRUCTBase CRTP helper providing common configuration (timeout, skip) for test builders.
Description
Section intitulée « Description »| Paramètre template | Description |
|---|---|
Derived | Derived builder type for method chaining. |
IsSkipped | Indicates whether the test execution is bypassed. |
Attributs publics
Section intitulée « Attributs publics »Méthodes publiques
Section intitulée « Méthodes publiques »Sets the execution timeout before the test is aborted.
| Paramètre | Description |
|---|---|
newTimeout | Timeout duration. |
Retourne : Reference to this builder.
Deliberately marks this test case to be skipped.
| Paramètre | Description |
|---|---|
message | Justification for skipping. |
Retourne : Rebound builder with skipping enabled.
Conditionally marks this test case to be skipped.
| Paramètre template | Description |
|---|---|
Condition | Compile-time condition flag. |
| Paramètre | Description |
|---|---|
message | Justification for skipping. |
Retourne : Rebound builder configured with the specified condition.
template <class Function>auto TestBuilderBase::addTest(std::string name, Function&& function, std::chrono::seconds timeout) -> void;Adds a test callback into the parent suite, taking skip status into account.
| Paramètre | Description |
|---|---|
name | Test identifier. |
function | Invocable test body. |
timeout | Execution timeout duration. |