Got build/execute/report working.
This commit is contained in:
30
examples/example.cpp
Normal file
30
examples/example.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
// #include <JTest.h>
|
||||
#include "JTest.h"
|
||||
#include "ClassToTest.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <tuple>
|
||||
|
||||
|
||||
using namespace JTest;
|
||||
using namespace MyNS;
|
||||
|
||||
using std::wstring;
|
||||
using std::vector;
|
||||
using std::wcout;
|
||||
|
||||
// const vector<wstring>& might stop being a reference
|
||||
testresults_t test_ClassToTest_main(int argc, const vector<wstring>& argv) {
|
||||
return make_testresults();
|
||||
}
|
||||
|
||||
// Dummy test harness
|
||||
int main(int argc, char* argv[]) {
|
||||
testresults_t results = make_testresults();
|
||||
|
||||
results = add(results, test_ClassToTest_main(0, vector<wstring>()));
|
||||
|
||||
print_test_results(results, wcout);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user