Added unittest for Xcode group support.

This commit is contained in:
Rick Appleton 2017-06-08 13:47:50 +02:00
parent 79d1c6f429
commit 382778c317
2 changed files with 26 additions and 1 deletions

View File

@ -44,7 +44,10 @@
return prj return prj
end end
function m.createGroup(wks)
local prj = group ("MyGroup" .. (#wks.groups + 1))
return prj
end
function m.getWorkspace(wks) function m.getWorkspace(wks)

View File

@ -75,6 +75,28 @@
]] ]]
end end
function suite.onMultipleProjectsGrouped()
test.createGroup(wks)
test.createproject(wks)
prepare()
test.capture [[
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:MyProject.xcodeproj">
</FileRef>
<Group
location = "container:"
name = "MyGroup1">
<FileRef
location = "group:MyProject2.xcodeproj">
</FileRef>
</Group>
</Workspace>
]]
end
-- --