mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Tests: Add schematic unittests
Improve schematic file-saving interface Add ability to create temporary test files
This commit is contained in:
@@ -102,11 +102,17 @@ class IGameDef;
|
||||
class TestBase {
|
||||
public:
|
||||
bool testModule(IGameDef *gamedef);
|
||||
std::string getTestTempDirectory();
|
||||
std::string getTestTempFile();
|
||||
|
||||
virtual void runTests(IGameDef *gamedef) = 0;
|
||||
virtual const char *getName() = 0;
|
||||
|
||||
u32 num_tests_failed;
|
||||
u32 num_tests_run;
|
||||
|
||||
private:
|
||||
std::string m_test_dir;
|
||||
};
|
||||
|
||||
class TestManager {
|
||||
|
Reference in New Issue
Block a user