no message
This commit is contained in:
@@ -83,8 +83,8 @@ from platformio.test.runners.factory import TestRunnerFactory
|
||||
help="A program argument (multiple are allowed)",
|
||||
)
|
||||
@click.option("--list-tests", is_flag=True)
|
||||
@click.option("--json-output", type=click.Path(resolve_path=True))
|
||||
@click.option("--junit-output", type=click.Path(resolve_path=True))
|
||||
@click.option("--json-output-path", type=click.Path(resolve_path=True))
|
||||
@click.option("--junit-output-path", type=click.Path(resolve_path=True))
|
||||
@click.option("--verbose", "-v", is_flag=True)
|
||||
@click.pass_context
|
||||
def test_cmd( # pylint: disable=too-many-arguments,too-many-locals,redefined-builtin
|
||||
@@ -104,8 +104,8 @@ def test_cmd( # pylint: disable=too-many-arguments,too-many-locals,redefined-bu
|
||||
monitor_dtr,
|
||||
program_args,
|
||||
list_tests,
|
||||
json_output,
|
||||
junit_output,
|
||||
json_output_path,
|
||||
junit_output_path,
|
||||
verbose,
|
||||
):
|
||||
app.set_session_var("custom_project_conf", project_conf)
|
||||
@@ -157,7 +157,10 @@ def test_cmd( # pylint: disable=too-many-arguments,too-many-locals,redefined-bu
|
||||
stdout_report = TestReportFactory.new("stdout", test_result)
|
||||
stdout_report.generate(verbose=verbose or list_tests)
|
||||
|
||||
for output_format, output_path in [("json", json_output), ("junit", junit_output)]:
|
||||
for output_format, output_path in [
|
||||
("json", json_output_path),
|
||||
("junit", junit_output_path),
|
||||
]:
|
||||
if not output_path:
|
||||
continue
|
||||
custom_report = TestReportFactory.new(output_format, test_result)
|
||||
|
||||
Reference in New Issue
Block a user