mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
33 lines
556 B
C++
33 lines
556 B
C++
#pragma once
|
|
|
|
#include "filesystem_def.h"
|
|
#include <string>
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
struct LINEDIFF
|
|
{
|
|
std::string expected;
|
|
std::string result;
|
|
};
|
|
|
|
struct TESTRESULT
|
|
{
|
|
typedef std::vector<LINEDIFF> LineDiffArray;
|
|
|
|
bool succeeded = false;
|
|
LineDiffArray lineDiffs;
|
|
};
|
|
|
|
class CTestReportWriter
|
|
{
|
|
public:
|
|
virtual ~CTestReportWriter()
|
|
{
|
|
}
|
|
|
|
virtual void ReportTestEntry(const std::string& name, const TESTRESULT&) = 0;
|
|
virtual void Write(const fs::path& reportPath) = 0;
|
|
};
|
|
|
|
typedef std::shared_ptr<CTestReportWriter> TestReportWriterPtr;
|