aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/testing/Testing.hpp
blob: 6b45cc5f8f6e6161390c1ffdc6195a3d9fa07014 (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
#pragma once
#include <iostream>
#include <vector>

#include "openvic-simulation/DefinitionManager.hpp"
#include "openvic-simulation/testing/TestScript.hpp"
#include "openvic-simulation/testing/test_scripts/A_001_file_tests.cpp"
#include "openvic-simulation/testing/test_scripts/A_002_economy_tests.cpp"
#include "openvic-simulation/testing/test_scripts/A_003_military_unit_tests.cpp"
#include "openvic-simulation/testing/test_scripts/A_004_networking_tests.cpp"
#include "openvic-simulation/testing/test_scripts/A_005_nation_tests.cpp"
#include "openvic-simulation/testing/test_scripts/A_006_politics_tests.cpp"

namespace OpenVic {

   class Testing {

   public:
      Testing(DefinitionManager const& definition_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);
   };
}