mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Add --filter to remote test (#4244)
This commit is contained in:
committed by
GitHub
parent
ab3c832f5e
commit
62b8a63b80
@ -163,7 +163,20 @@ def remote_run(
|
|||||||
|
|
||||||
@cli.command("test", short_help="Remote Unit Testing")
|
@cli.command("test", short_help="Remote Unit Testing")
|
||||||
@click.option("--environment", "-e", multiple=True, metavar="<environment>")
|
@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("--upload-port")
|
||||||
@click.option("--test-port")
|
@click.option("--test-port")
|
||||||
@click.option(
|
@click.option(
|
||||||
@ -184,6 +197,7 @@ def remote_test(
|
|||||||
ctx,
|
ctx,
|
||||||
agents,
|
agents,
|
||||||
environment,
|
environment,
|
||||||
|
filter,
|
||||||
ignore,
|
ignore,
|
||||||
upload_port,
|
upload_port,
|
||||||
test_port,
|
test_port,
|
||||||
@ -201,6 +215,7 @@ def remote_test(
|
|||||||
agents,
|
agents,
|
||||||
dict(
|
dict(
|
||||||
environment=environment,
|
environment=environment,
|
||||||
|
filter=filter,
|
||||||
ignore=ignore,
|
ignore=ignore,
|
||||||
upload_port=upload_port,
|
upload_port=upload_port,
|
||||||
test_port=test_port,
|
test_port=test_port,
|
||||||
@ -219,6 +234,7 @@ def remote_test(
|
|||||||
ctx.invoke(
|
ctx.invoke(
|
||||||
test_cmd,
|
test_cmd,
|
||||||
environment=environment,
|
environment=environment,
|
||||||
|
filter=filter,
|
||||||
ignore=ignore,
|
ignore=ignore,
|
||||||
project_dir=project_dir,
|
project_dir=project_dir,
|
||||||
without_uploading=True,
|
without_uploading=True,
|
||||||
|
Reference in New Issue
Block a user