splunk / contentctl

Splunk Content Control Tool
Apache License 2.0
80 stars 20 forks source link

Emit summary if no detections tested #185

Closed pyth0n1c closed 2 months ago

pyth0n1c commented 2 months ago

We still want to emit a test_results/summary.yml file, even if there were no detections tested. We should always have a record of the test. Here is what it will look like if no tests were run:

summary:
  success: true
  total_detections: 0
  total_pass: 0
  total_fail: 0
  total_skipped: 0
  total_untested: 0
  total_experimental_or_deprecated: 0
  success_rate: UKNOWN
tested_detections: []
untested_detections: []
percent_complete: UKNOWN
deprecated_detections: []
experimental_detections: []

This is very common when using mode:changes against the same branch or a branch with no updates that can be tested.