aboutsummaryrefslogtreecommitdiff
path: root/unit_tests/linda_tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--unit_tests/linda_tests.cpp22
1 files changed, 19 insertions, 3 deletions
diff --git a/unit_tests/linda_tests.cpp b/unit_tests/linda_tests.cpp
index 29eb28c..e956999 100644
--- a/unit_tests/linda_tests.cpp
+++ b/unit_tests/linda_tests.cpp
@@ -3,7 +3,7 @@
3 3
4// ################################################################################################# 4// #################################################################################################
5 5
6TEST_CASE("single Keeper Lindas") 6TEST_CASE("linda.single Keeper")
7{ 7{
8 LuaState S{ LuaState::WithBaseLibs{ true }, LuaState::WithFixture{ true } }; 8 LuaState S{ LuaState::WithBaseLibs{ true }, LuaState::WithFixture{ true } };
9 S.requireSuccess("lanes = require 'lanes'"); 9 S.requireSuccess("lanes = require 'lanes'");
@@ -306,7 +306,7 @@ TEST_CASE("single Keeper Lindas")
306// ################################################################################################# 306// #################################################################################################
307// ################################################################################################# 307// #################################################################################################
308 308
309TEST_CASE("multi Keeper Lindas") 309TEST_CASE("linda.multi Keeper")
310{ 310{
311 LuaState S{ LuaState::WithBaseLibs{ true }, LuaState::WithFixture{ false } }; 311 LuaState S{ LuaState::WithBaseLibs{ true }, LuaState::WithFixture{ false } };
312 312
@@ -323,7 +323,22 @@ TEST_CASE("multi Keeper Lindas")
323// ################################################################################################# 323// #################################################################################################
324// ################################################################################################# 324// #################################################################################################
325 325
326TEST_CASE("linda scripted tests") 326// unfortunately, VS Test adapter does not list individual sections,
327// so let's create a separate test case for each file with an ugly macro...
328
329#define MAKE_TEST_CASE(DIR, FILE) \
330TEST_CASE("scripted tests." #DIR "." #FILE) \
331{ \
332 FileRunner _runner(R"(.\lanes\unit_tests\scripts)"); \
333 _runner.performTest(FileRunnerParam{ #DIR "/" #FILE, TestType::AssertNoLuaError }); \
334}
335
336MAKE_TEST_CASE(linda, send_receive)
337MAKE_TEST_CASE(linda, send_registered_userdata)
338MAKE_TEST_CASE(linda, multiple_keepers)
339
340/*
341TEST_CASE("linda.scripted tests")
327{ 342{
328 auto const& _testParam = GENERATE( 343 auto const& _testParam = GENERATE(
329 FileRunnerParam{ "linda/send_receive", TestType::AssertNoLuaError }, 344 FileRunnerParam{ "linda/send_receive", TestType::AssertNoLuaError },
@@ -334,3 +349,4 @@ TEST_CASE("linda scripted tests")
334 FileRunner _runner(R"(.\lanes\unit_tests\scripts)"); 349 FileRunner _runner(R"(.\lanes\unit_tests\scripts)");
335 _runner.performTest(_testParam); 350 _runner.performTest(_testParam);
336} 351}
352*/ \ No newline at end of file