summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/Tests/TestSuite.h
blob: 0b8c16c63a7702323af06f907627df29fb48e612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * TestSuite.h
 *
 *  Created on: Nov 4, 2012
 *      Author: attero
 */

#ifndef TESTSUITE_H_
#define TESTSUITE_H_
#include <string>
#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();
	/**
	 * 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();
};

#endif /* TESTSUITE_H_ */