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 optional parameter of product_module_name #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dostrander
Copy link

This will be forwarded into the xctestrun file in the test name doesn't accurately reflect the module underneath

@@ -172,6 +174,11 @@ def _Test(args):
help='The platform of the device. The value can be ios_device or '
'ios_simulator.'
)
optional_arguments.add_argument(
Copy link
Contributor

@jerrymarino jerrymarino Dec 20, 2022

Choose a reason for hiding this comment

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

@dostrander I tested this out a bit today, and I think you might want to add the argument to the other case. That looks like it's failing the rules_apple PR:
bazelbuild/rules_apple#1785

I added this into our rules_apple and xctestrunner fork for the reference of what I did in an attempt to fix: bazel-ios@52bdfe3

Copy link
Contributor

Choose a reason for hiding this comment

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

+++ b/test_runner/ios_test_runner.py
@@ -247,6 +247,11 @@ def _AddSimulatorTestSubParser(subparsers):
            'prefix with simulator type and os version. '
            'E.g., New-iPhone 6 Plus-10.2.')
   test_parser.set_defaults(func=_SimulatorTest)
+  optional_arguments = test_parser.add_argument_group('Optional arguments')
+  optional_arguments.add_argument(
+      '--product_module_name',
+      help='The product module name that will be set in the xctestrun file.'
+  )

This will be forwarded into the xctestrun file in the test name doesn't accurately reflect the module underneath
@brentleyjones
Copy link
Contributor

cc @tirodkar @me11kiy

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.

None yet

4 participants