Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#include "EditorTest.h"
#include "EditorDataControllerTest.h"
#include "DocumentPageTest.h"
#include "DocumentParagraphTest.h"
#include "DocumentRowTest.h"
#include "DocumentTest.h"
#include "DocumentFormatterTest.h"
#include "VerbatimFormatterTest.h"
#include "RandomTests.h"
#include <iostream>
#include <vector>
using namespace std;
typedef unsigned long long _ull;
_ull testsRun = 0;
_ull testsPassed = 0;
_ull testsFailed = 0;
void Intro()
{
cout << "========================================================================" << endl;
cout << "Beginning Unit Tests" << endl;
cout << "========================================================================" << endl;
}
void FinalReport()
{
cout << "========================================================================" << endl;
cout << "Tests Run: " << testsRun << endl;
cout << "Tests Failed: " << testsFailed << endl;
cout << "Tests Passed: " << testsPassed << endl;
cout << "========================================================================" << endl;
}
int EditorTest()
{
Intro();
vector<ComponentTest*> tests;
tests.push_back(new EditorDataControllerTest());
tests.push_back(new DocumentRowTest());
tests.push_back(new DocumentParagraphTest());
tests.push_back(new DocumentPageTest());
tests.push_back(new DocumentTest());
tests.push_back(new DocumentFormatterTest());
tests.push_back(new VerbatimFormatterTest());
// tests.push_back(new RandomTests());
for (ComponentTest *test : tests) {
test->TestComponent();
testsRun += test->GetTestCount();
testsFailed += test->GetTestsFailed();
testsPassed += test->GetTestsPassed();
}
FinalReport();
return 0;
}