# Getting a Quick Summary of Failures on Github Actions With RSpec

##### Wed Jan 27, 2021
###### ~500 Words

We recently migrated from Circle CI to Github Actions to take advantage of the ability to have all CI runs start immediately no matter how many branches we pushed up at once (on Circle we paid for a limited number of runners, whereas on Github Actions you pay for the minutes used).

One thing that we missed however was the short summary of failures that Circle would give us if any spec failed. Generally this is the only CI output that we are interested in beyond how long it took to run.

On Github Actions however we could only click on the RSpec step and had to scroll through the full output to get to the failures at the bottom. Searching online didn’t turn up others experiencing the same problem which was confusing at first but ultimately lead to the answer: the reason others are not complaining is perhaps in part because they’re using the default RSpec settings, which include the ‘progress’ format for the output.

I like the ‘documentation’ output which is verbose but it allows me to scan spec output locally to evaluate it as a test plan for the code under test. Here’s the output for a small module which aims to strip out PII from comments:

Sanitize
.phone_numbers_in
replaces likely phone number segments with asterisks

The simple answer: switch back to --format=progress or even --format=failures for the most terse output.
If you are looking to print your own summary of spec failures then I would recommend causing the rspec step to always pass (return 0), then have a subsequent step load and print the RSpec metadata for failing specs only.