Bienvenue sur la nouvelle documentation de CppUtils !
CppUtils::UnitTest::TestSuite
STRUCTCore test suite execution context providing assertion methods, builders, and test registration.
Description
Section intitulée « Description »Instances are passed to test suite definitions configured via testSuite("SuiteName") = [](TestSuite& suite) { ... };. Supports regular tests, compile-time tests, parameterized tests (types, values, ranges), fuzz tests, and benchmarks.
Types publics
Section intitulée « Types publics »using CppUtils::UnitTest::TestSuite::Logger = Logger<"UnitTests">;Attributs publics
Section intitulée « Attributs publics »Méthodes publiques
Section intitulée « Méthodes publiques »Declares a test case with the specified name, returning a builder to configure and assign its body.
| Paramètre | Description |
|---|---|
name | Descriptive test name. |
Retourne : TestBuilder instance.
[[nodiscard]] auto TestSuite::fuzzTest(std::string name, std::size_t iterations) -> FuzzTestBuilder<false>;Registers a fuzz test executed for a specified number of randomized iterations.
| Paramètre | Description |
|---|---|
name | Test identifier. |
iterations | Number of iterations to run. |
Retourne : FuzzTestBuilder for assigning the test body callback.