in idb/cli/commands/xctest.py [0:0]
def add_parser_arguments(self, parser: ArgumentParser) -> None:
self.add_parser_positional_arguments(parser)
parser.add_argument(
"--result-bundle-path",
default=None,
type=str,
help="Path to save the result bundle",
)
parser.add_argument(
"--timeout",
help="The number of seconds to wait before the test times out. When the timeout is exceeded the test will exit and an attempt will be made to obtain a sample of the hung process",
default=None,
type=int,
)
parser.add_argument(
"--report-activities",
action="store_true",
help="idb will report activity data emitted by your test bundle",
)
parser.add_argument(
"--report-attachments",
action="store_true",
help="idb will report activity and attachment data emitted by your test bundle",
)
parser.add_argument(
"--activities-output-path",
help=(
"When activity data is reported, "
"data blobs will be saved to this location"
),
)
parser.add_argument(
"--coverage-output-path",
help="Outputs code coverage information. See --coverage-format option.",
)
parser.add_argument(
"--coverage-format",
choices=[str(key) for (key, _) in CodeCoverageFormat.__members__.items()],
default="EXPORTED",
help="Format for code coverage information: "
"EXPORTED (default value) a file in JSON format as exported by `llvm-cov export`; "
"RAW a folder containing the .profraw files as generated by the Test Bundle, Host App and/or Target App",
)
parser.add_argument(
"--log-directory-path",
default=None,
type=str,
help="Path to save the test logs collected",
)
parser.add_argument(
"--wait-for-debugger",
action="store_true",
help="Suspend test run process to wait for a debugger to be attached. (It is NOT supported by ui test).",
)
parser.add_argument(
"--install",
help="When this option is provided bundle_ids are assumed "
"to be paths instead. They are installed before running.",
action="store_true",
)
parser.add_argument(
"--install-dsym-test-bundle",
default=None,
type=str,
nargs="?",
const=NO_SPECIFIED_PATH,
help="Install debug symbols together with bundle. Specify path for debug symbols; otherwise, we'll try to infer it. (requires --install)",
)
super().add_parser_arguments(parser)