stuff-from-scratch/test/test_utils/TestCaseRunner.h
2022-11-29 18:00:19 +00:00

27 lines
451 B
C++

#pragma once
#include "TestCase.h"
#include <vector>
#include <string>
class TestCaseRunner
{
public:
TestCaseRunner() = default;
static TestCaseRunner& getInstance()
{
static TestCaseRunner instance;
return instance;
}
~TestCaseRunner();
void addTestCase(const std::string& label, const std::string& tag, TestCase::TestCaseFunction func);
bool run();
private:
std::vector<TestCase*> mCases;
};