help='All ways pytest supports to run and select tests. Please provide a single string. Example: "test_mod.py", "testing/", "test_mod.py::test_func", "-k \'MyClass and not method\'"',
),
branch: Union[str, None] =typer.Option(
None, help="Branch to test (branch MUST be provided or use --reference)"
),
backend: str=typer.Option("modal", help="Backend to use for testing"),
timeout: int=typer.Option(1800, help="Timeout for tests in seconds"),
num_cpus: int=typer.Option(1, help="Number of CPUs to use"),
reference: Annotated[
bool, typer.Option("--reference", help="Test the reference commit")
] =False,
coverage: Annotated[
bool, typer.Option("--coverage", help="Whether to get coverage information")
] =False,
rebuild: bool=typer.Option(
False, "--rebuild", help="Whether to rebuild an image"
),
commit0_config_file: str=typer.Option(
".commit0.yaml",
help="Path to the commit0 dot file, where the setup config is stored",
),
verbose: int=typer.Option(
1,
"--verbose",
"-v",
help="Set this to 2 for more logging information",
count=True,
),
stdin: bool=typer.Option(
False,
"--stdin",
help="Read test names from stdin. Example: `echo 'test_mod.py' | commit0 test REPO --branch BRANCH`",