Skip to content

Commit

Permalink
Add file config struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Duzzuti committed Feb 9, 2024
1 parent cb54e76 commit 6b8a579
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tests/game_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@

/// @brief Contains the configuration for a test
struct TestConfig {
/// @brief The name of the test file where the test should be stored
std::string fileName = "test.cpp";
/// @brief The name of the cmake test that should be created
std::string cmakeTestName = "test";
/// @brief The name of the google test class
std::string className = "test";
/// @brief The name of the google test
Expand All @@ -29,6 +25,16 @@ struct TestConfig {
std::vector<Action> playerActions[MAX_PLAYERS];
};

/// @brief Contains all test configurations for a file
struct FileConfig {
/// @brief The name of the test file where the test should be stored
std::string fileName = "test_gametest.cpp";
/// @brief The name of the cmake test that should be created
std::string cmakeTestName = "test";
/// @brief The configurations for the tests in the file
std::vector<TestConfig> config;
};

/// @brief Mocks the Game class for testing
class GameTest : public Game {
public:
Expand Down

0 comments on commit 6b8a579

Please sign in to comment.