diff --git a/planemo/galaxy/test/actions.py b/planemo/galaxy/test/actions.py index 2bb7d44bb..3c9f43873 100644 --- a/planemo/galaxy/test/actions.py +++ b/planemo/galaxy/test/actions.py @@ -80,7 +80,7 @@ def handle_reports(ctx, structured_data, kwds): except Exception as e: exceptions.append(e) - for report_type in ["html", "markdown", "text", "xunit", "junit", "allure"]: + for report_type in ["html", "markdown", "markdown_minimal", "text", "xunit", "junit", "allure"]: try: _handle_test_output_file(ctx, report_type, structured_data, kwds) except Exception as e: diff --git a/planemo/options.py b/planemo/options.py index 7ceff7de4..867d637c2 100644 --- a/planemo/options.py +++ b/planemo/options.py @@ -1531,6 +1531,13 @@ def test_report_options(): help=("Output test report (Markdown style - for humans & " "computers)"), default=None, ), + planemo_option( + "--test_output_markdown_minimal", + type=click.Path(file_okay=True, resolve_path=True), + use_global_config=True, + help=("Output test report (Minimal markdown style - jost the table)"), + default=None, + ), planemo_option( "--test_output_xunit", type=click.Path(file_okay=True, resolve_path=True), diff --git a/planemo/reports/report_markdown_minimal.tpl b/planemo/reports/report_markdown_minimal.tpl new file mode 100644 index 000000000..6d44fcefd --- /dev/null +++ b/planemo/reports/report_markdown_minimal.tpl @@ -0,0 +1,46 @@ +{% from 'macros.tmpl' import render_invocation_details, render_invocation_messages, render_job_parameters, render_steps %} +{% if title %} +# {{ execution_type }} {{ title }} + +{% endif %} +## {{ execution_type }} Summary +{% set state = namespace(found=false) %} +{% set state.success = raw_data.results.total - raw_data.results.errors - raw_data.results.failures - raw_data.results.skips | default(0) %} +{% set state.error = raw_data.results.errors | default(0) %} +{% set state.failure = raw_data.results.failures | default(0) %} +{% set state.skipped = raw_data.results.skipped | default(0) %} + +{% if raw_data.results.total %} +