feat(Testing): add per-run owned reporters, strict config validation, FailureCapture, subprocess isolation, and deterministic property/schedule harness (M-TESTING-02, M-TESTING-03)
This commit is contained in:
1 parent
1b3331e3a8
commit
de8a981893
11 files changed
+1712
-55
No files matched your search
@@ -12,6 +12,9 @@
|
||||
namespace Void::Testing
|
||||
{
|
||||
|
||||
inline constexpr std::size_t kMaxRetainedAssertionsPerTest = 1000;
|
||||
inline constexpr std::size_t kMaxDiagnosticBytesPerTest = 1024ULL * 1024ULL;
|
||||
|
||||
enum class AssertKind : uint8_t { Expect, Require, Assert };
|
||||
enum class TestState : uint8_t { Passed, Failed, Skipped, Crashed };
|
||||
|
||||
@@ -55,6 +58,10 @@ namespace Void::Testing
|
||||
std::string crash_info;
|
||||
std::string stacktrace;
|
||||
std::vector<std::string> tags;
|
||||
bool assertions_truncated{false};
|
||||
std::size_t dropped_assertions{0};
|
||||
std::size_t diagnostic_bytes{0};
|
||||
std::string cleanup_error;
|
||||
};
|
||||
|
||||
struct SuiteResult {
|
||||
@@ -70,6 +77,7 @@ namespace Void::Testing
|
||||
int skipped{0};
|
||||
int crashed{0};
|
||||
int total{0};
|
||||
std::string config_error;
|
||||
};
|
||||
|
||||
struct RunConfig {
|
||||
@@ -84,9 +92,12 @@ namespace Void::Testing
|
||||
bool no_color{false};
|
||||
bool shuffle{false};
|
||||
bool show_help{false};
|
||||
bool allow_empty{false};
|
||||
unsigned repeat{1};
|
||||
unsigned random_seed{0};
|
||||
unsigned parallel_threads{0}; // 0 = sequential
|
||||
std::string parse_error;
|
||||
std::string selftest_child;
|
||||
};
|
||||
|
||||
} // namespace Void::Testing
|
||||
Reference in new issue
Block a user