Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCUITest type added (similar to XCTest) #1937

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

duck4i
Copy link

@duck4i duck4i commented Aug 24, 2022

This PR adds the support for the XCUITest type for XCode projects. It is very similar to XCTest, with most things being the same, but it's a different productType than the XCTest.

Don't expect any breaking change, because this is an addition. And I have also added tests.

@@ -243,6 +243,13 @@
test.isequal("bin/Debug/MyProject.xctest/Contents/MacOS", path.getrelative(os.getcwd(), i.bundlepath))
end

function suite.bundlepathSet_onMacSharedLibXCUITest()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add documentation to this test.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you point me to where pls? Happy to do so.

Copy link
Member

@nickclark2016 nickclark2016 Aug 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just look at other unit tests above and add the doc comment

@@ -409,6 +409,14 @@
test.contains({ "-Wl,-x", "-bundle" }, gcc.getldflags(cfg))
end

function suite.ldflags_onMacOSXXCUITest()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add documentation to this test.

@@ -10,6 +10,7 @@ sharedlibtype "value"
* `OSXBundle` - needs documentation.
* `OSXFramework` - needs documentation.
* `XCTest` - needs documentation.
* `XCUITest`- needs documentation.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're able to add documentation to describe this, do you mind doing so? That's basically a TODO for us when we updated our docs to get documentation added to fields.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be great.

Copy link
Author

@duck4i duck4i Aug 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I'll get to it after the holidays, wasn't sure if you're OK with doing this in same PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, good point about same PR. It may make sense to just touch this line in this PR, then do the rest in a follow up. I don't have a huge preference either way, since the PR will stay small.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I'll get to it after the holidays, wasn't sure if you're OK with doing this in same PR.

Not sure when the holidays end for you. I'm trying to start prepping a new release build of Premake. Will this be ready by the weekend?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I'm back on 5th, so that week would be earliest. No rush on my side, we run custom fork until it gets merged. Thanks.

Copy link
Member

@nickclark2016 nickclark2016 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants