diff options
Diffstat (limited to 'unit_tests/misc_tests.cpp')
| -rw-r--r-- | unit_tests/misc_tests.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/unit_tests/misc_tests.cpp b/unit_tests/misc_tests.cpp index a2199aa..3848a75 100644 --- a/unit_tests/misc_tests.cpp +++ b/unit_tests/misc_tests.cpp | |||
| @@ -191,3 +191,12 @@ TEST_CASE("misc.convert_max_attempts.is_respected") | |||
| 191 | " l:send('k', t)" // send the table, it should raise an error because the converter retries too many times | 191 | " l:send('k', t)" // send the table, it should raise an error because the converter retries too many times |
| 192 | ); | 192 | ); |
| 193 | } | 193 | } |
| 194 | |||
| 195 | #define MAKE_TEST_CASE(DIR, FILE, CONDITION) \ | ||
| 196 | TEST_CASE("scripted_tests." #DIR "." #FILE) \ | ||
| 197 | { \ | ||
| 198 | FileRunner _runner(R"(.\unit_tests\scripts)"); \ | ||
| 199 | _runner.performTest(FileRunnerParam{ #DIR "/" #FILE, TestType::CONDITION }); \ | ||
| 200 | } | ||
| 201 | |||
| 202 | MAKE_TEST_CASE(misc, verbose_errors, AssertNoLuaError) | ||
