Skip to content

Add option to hide passed tests

Dan Davison requested to merge dj-75-add-option-to-hide-passed-tests into main

What does this MR do and why?

Add option to hide passed tests in the table posted to Slack.

Closes #75 (closed)

Screenshots or screen recordings

Where /Users/ddavison/Downloads/rspec-*.xml returns:

Before After
2024-06-21_11-27-09 2024-06-21_11-27-14

How to set up and validate locally

CI_PROJECT_ID=278964 \
CI_PIPELINE_ID=1332326871 \
bundle exec post-to-slack \
  --slack-webhook-url "$CI_SLACKHOOK_URL" \
  --channel "qa-" \
  --username "GitLab QA Bot" \
  --icon-emoji "ci_running" \
  --message "TEST" \
  --sort-by "Failures" \
  --sort-direction "desc" \
  --include-summary-table "/Users/ddavison/Downloads/rspec-*.xml" \
  --gitlab-api-token "$GITLAB_API_TOKEN" \
  --include-failed-jobs-table \
  --hide-passed-tests

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Dan Davison

Merge request reports