mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Tests: Add schematic unittests
Improve schematic file-saving interface Add ability to create temporary test files
This commit is contained in:
parent
33c11415bf
commit
2dba29ebf2
8 changed files with 329 additions and 32 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue