From 382778c31751e268ad9d8f4a96747a82f307e823 Mon Sep 17 00:00:00 2001 From: Rick Appleton Date: Thu, 8 Jun 2017 13:47:50 +0200 Subject: [PATCH] Added unittest for Xcode group support. --- modules/self-test/test_helpers.lua | 5 ++++- modules/xcode/tests/test_xcode4_workspace.lua | 22 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/modules/self-test/test_helpers.lua b/modules/self-test/test_helpers.lua index 4faf2a8b..c6754784 100644 --- a/modules/self-test/test_helpers.lua +++ b/modules/self-test/test_helpers.lua @@ -44,7 +44,10 @@ return prj end - + function m.createGroup(wks) + local prj = group ("MyGroup" .. (#wks.groups + 1)) + return prj + end function m.getWorkspace(wks) diff --git a/modules/xcode/tests/test_xcode4_workspace.lua b/modules/xcode/tests/test_xcode4_workspace.lua index e4427ed4..d8f6641f 100644 --- a/modules/xcode/tests/test_xcode4_workspace.lua +++ b/modules/xcode/tests/test_xcode4_workspace.lua @@ -75,6 +75,28 @@ ]] end + function suite.onMultipleProjectsGrouped() + test.createGroup(wks) + test.createproject(wks) + prepare() + test.capture [[ + + + + + + + + + + ]] + end + --