Add --filter to remote test (#4244)

This commit is contained in:
Sebastian Guarino
2022-04-28 17:25:43 +02:00
committed by GitHub
parent ab3c832f5e
commit 62b8a63b80

View File

@ -163,7 +163,20 @@ def remote_run(
@cli.command("test", short_help="Remote Unit Testing")
@click.option("--environment", "-e", multiple=True, metavar="<environment>")
@click.option("--ignore", "-i", multiple=True, metavar="<pattern>")
@click.option(
"--filter",
"-f",
multiple=True,
metavar="<pattern>",
help="Filter tests by a pattern",
)
@click.option(
"--ignore",
"-i",
multiple=True,
metavar="<pattern>",
help="Ignore tests by a pattern",
)
@click.option("--upload-port")
@click.option("--test-port")
@click.option(
@ -184,6 +197,7 @@ def remote_test(
ctx,
agents,
environment,
filter,
ignore,
upload_port,
test_port,
@ -201,6 +215,7 @@ def remote_test(
agents,
dict(
environment=environment,
filter=filter,
ignore=ignore,
upload_port=upload_port,
test_port=test_port,
@ -219,6 +234,7 @@ def remote_test(
ctx.invoke(
test_cmd,
environment=environment,
filter=filter,
ignore=ignore,
project_dir=project_dir,
without_uploading=True,