Got build/execute/report working.

This commit is contained in:
2023-04-02 16:41:12 -07:00
parent d676ea7b53
commit 1dce48f049
8 changed files with 119 additions and 0 deletions

21
examples/JTest.h Normal file
View File

@@ -0,0 +1,21 @@
#include <iostream> // TODO: Maybe just ostream.
namespace JTest {
using std::wostream;
// TODO: Consider making testresults_t a class so we can hide the vectors behind accessor methods void add(...), T get(), vector<T> get(uint32_t index)
typedef struct {
uint32_t total;
uint32_t skipped;
uint32_t passed;
uint32_t failed;
// vector<error_t> errors;
// vector<testfailure_t> failures;
// vector<testmethod_t> skipped;
} testresults_t;
testresults_t make_testresults();
testresults_t make_testresults(uint32_t total, uint32_t skipped, uint32_t passed, uint32_t failed);
testresults_t add(const testresults_t&, const testresults_t&);
void print_test_results(const testresults_t&, wostream&);
}