aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/testing/Testing.hpp
blob: 670c95a3e7e38d1f7dd189613082e2e04b7d1cd6 (plain) (blame)
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
#pragma once
#include <testing/TestScript.hpp>
#include <GameManager.hpp>
#include <iostream>
#include <vector>

#include <testing/test_scripts/A_001_file_tests.cpp>
#include <testing/test_scripts/A_002_economy_tests.cpp>
#include <testing/test_scripts/A_003_military_unit_tests.cpp>
#include <testing/test_scripts/A_004_networking_tests.cpp>
#include <testing/test_scripts/A_005_nation_tests.cpp>
#include <testing/test_scripts/A_006_politics_tests.cpp>

namespace OpenVic {

   class Testing {

   public:

      Testing(GameManager* game_manager);
      ~Testing();

      std::vector<TestScript*> test_scripts = std::vector<TestScript*>();

      void execute_all_scripts();
      void report_results();
      void report_result(std::string req_title, std::ofstream& outfile, std::vector<Requirement*> reqs);
   };
}