aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/testing/Testing.hpp
diff options
context:
space:
mode:
author CptAlanSmith <123112708+CptAlanSmith@users.noreply.github.com>2023-09-25 21:51:49 +0200
committer GitHub <noreply@github.com>2023-09-25 21:51:49 +0200
commit127ca294056817bc5814ef5516b29a67ff3fa3bb (patch)
tree2e5c5676a43793678dfd75f83a862eb3f9f4a780 /src/openvic-simulation/testing/Testing.hpp
parent05b6db7305398e12363f727a50315972cc9a5a54 (diff)
Testing (#28)
* Dataloader stubs + default compat path + bits+bobs * Followup big dataloader commit * Fixes for building scons * Initial proof of concept auto-testing Shows how we can pull loaded data and display it back * data-loader include * Re-did headless Because hubert insisted it be done like this ;) * Auto-Testing Framework Basics * Requirements Calculations * Fix for messy merge (teach me to use merge tools) * Fixing up misc merge issues to fully reconcile with master changes * Re-added missing getters * Move of testing files due to folder reorgs * Update of file tests * Test scripting updates - elimnination of issues with data variables hanging over from big merges Routed gamemanager down to scripts on execute * Update StringUtils.hpp * Initial pipeline building * Pipe fabrication * Continued work on goods testing, removal of pragma once lines * Finish of economy tests, initial results outputting * Output of results * Removal of direct.h for cross compatibility --------- Co-authored-by: Hop311 <hop3114@gmail.com>
Diffstat (limited to 'src/openvic-simulation/testing/Testing.hpp')
-rw-r--r--src/openvic-simulation/testing/Testing.hpp24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/openvic-simulation/testing/Testing.hpp b/src/openvic-simulation/testing/Testing.hpp
index 35e8a96..90c32db 100644
--- a/src/openvic-simulation/testing/Testing.hpp
+++ b/src/openvic-simulation/testing/Testing.hpp
@@ -16,29 +16,13 @@ namespace OpenVic {
class Testing {
public:
- GameManager& game_manager;
- Map& map;
- BuildingManager& building_manager;
- GoodManager& good_manager;
- PopManager& pop_manager;
- GameAdvancementHook& clock;
- std::vector<TestScript*> test_scripts = std::vector<TestScript*>();
-
- //// Prototype test script
- //const BuildingType* building_type = building_manager->get_building_type_by_identifier("building_fort");
- //std::cout << "building_fort"
- // << " build time is " << building_type->get_build_time() << std::endl;
- //std::cout << "building_fort"
- // << " identifier is " << building_type->get_identifier() << std::endl;
- //std::cout << "building_fort"
- // << " max level is " << int(building_type->get_max_level()) << std::endl;
- //for (const auto& good : good_manager->get_goods())
- // std::cout << good.get_identifier() << " price = " << good.get_base_price() << std::endl;
-
- Testing(GameManager& g_manager);
+ Testing(GameManager* game_manager);
~Testing();
+ std::vector<TestScript*> test_scripts = std::vector<TestScript*>();
+
+ void execute_all_scripts();
void report_results();
};
}