summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/Tests/TestSuite.h
diff options
context:
space:
mode:
Diffstat (limited to 'Sencha-lang/Tests/TestSuite.h')
-rw-r--r--Sencha-lang/Tests/TestSuite.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/Sencha-lang/Tests/TestSuite.h b/Sencha-lang/Tests/TestSuite.h
index c532443..0b8c16c 100644
--- a/Sencha-lang/Tests/TestSuite.h
+++ b/Sencha-lang/Tests/TestSuite.h
@@ -11,15 +11,27 @@
#include "minunit.h"
#include <iostream>
-
+/**
+ * TestSuite is main part of test framework. It is a base class for all other
+ * test suites such as TestParser suite and so on.
+ *
+ */
class TestSuite {
public:
int tests_passed;
int tests_failed;
int tests;
+ /**
+ * run_tests() is crucial method. It's really universal and very useful.
+ * It runs tests and gathers all data acquired during running tests and display them.
+ */
void run_tests();
- virtual std::string all_tests();
+ /**
+ * all_tests() is a virtual method which is used in run_tests() function. It has to be overloaded in
+ * classes which inherits TestSuite.
+ */
+ virtual std::string all_tests() = 0;
TestSuite();
virtual ~TestSuite();