diff --git a/platformio/commands/remote/command.py b/platformio/commands/remote/command.py index 1c6bc2aa..d861d66c 100644 --- a/platformio/commands/remote/command.py +++ b/platformio/commands/remote/command.py @@ -163,7 +163,20 @@ def remote_run( @cli.command("test", short_help="Remote Unit Testing") @click.option("--environment", "-e", multiple=True, metavar="") -@click.option("--ignore", "-i", multiple=True, metavar="") +@click.option( + "--filter", + "-f", + multiple=True, + metavar="", + help="Filter tests by a pattern", +) +@click.option( + "--ignore", + "-i", + multiple=True, + metavar="", + 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,