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

Add --bundle-path option to carton test #358

Merged
merged 6 commits into from
May 30, 2022
Merged

Conversation

kateinoigakukun
Copy link
Member

This allows users to build their projects in their responsibilities with custom options.

@kateinoigakukun kateinoigakukun added the enhancement New feature or request label May 30, 2022
@kateinoigakukun kateinoigakukun marked this pull request as ready for review May 30, 2022 14:53
@kateinoigakukun kateinoigakukun requested a review from a team May 30, 2022 14:53
yonihemi
yonihemi previously approved these changes May 30, 2022
@@ -56,6 +56,9 @@ struct Test: AsyncParsableCommand {
)
var host = "127.0.0.1"

@Option(help: "Use the given bundle instead of building the test target")
var bundlePath: String?
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would you consider something like prebuiltBinaryPath here? It's not clear what exactly "bundle" means in this context. It took me some time to remember that XCTest names these as test bundles, but I think "prebuilt binary" or something like that is much more clear.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, actually the produced wasm binary is not "bundle" in darwin terms, and I agree it's unclear here...

--prebuilt-binary-path sounds better to me but not the best since "binary" is a little bit ambiguous.
But let's go ahead with --prebuilt-binary-path and rename it after we will come up with a good idea.

Copy link
Collaborator

Choose a reason for hiding this comment

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

--prebuilt-test-bundle-path could also work maybe? But still confusing in the context of carton bundle, so maybe --prebuilt-binary-path really is the best currently known option?

Copy link
Collaborator

@MaxDesiatov MaxDesiatov May 30, 2022

Choose a reason for hiding this comment

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

Another way could be to pass it to carton test directly, without options: carton test test.wasm

Copy link
Member Author

Choose a reason for hiding this comment

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

A little bit long, but sounds better 👍

Copy link
Collaborator

Choose a reason for hiding this comment

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

WDYT about passing to carton test directly, like carton test test.wasm?

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought it first, but positional arguments are already used as testCases

@kateinoigakukun kateinoigakukun enabled auto-merge (squash) May 30, 2022 15:45
@kateinoigakukun kateinoigakukun merged commit 820c2af into main May 30, 2022
@kateinoigakukun kateinoigakukun deleted the katei/add-skip-build branch May 30, 2022 16:04
@MaxDesiatov
Copy link
Collaborator

@kateinoigakukun sorry I'm too late with this suggestion, but can you also update README.md section about carton test with a sentence or two about this new option? Thanks!

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

Successfully merging this pull request may close these issues.

3 participants