← Catalogue

rspec

RSpec's `Failures:` block through to the `N examples, N failures` tally.

rubytesttoolmatcher

Open in playgroundFile on GitHubHistory

Install: ci-doctor matchers add official/rspec

matchers/ruby/rspec/matcher.yaml

id: rspecrole: toolclassification: [ruby, test]description: RSpec's `Failures:` block through to the `N examples, N failures` tally.start: ^Failures:$end: ^\d+ examples?, \d+ failures?

In bundles

allruby

Fixtures

Framing stripped per provider. Highlighted lines are what this matcher selects; the marked line is the anchor.

rspec_failureOpen in playground

1Current runner version: '2.336.0'
2##[group]Operating System
3Ubuntu
424.04.4
5LTS
6##[endgroup]
7Secret source: Actions
8Prepare workflow directory
9Prepare all required actions
10Complete job name: rspec_failure
11##[group]Set up job
12Image: ubuntu-24.04
13Runner name: 'GitHub Actions 12'
14##[endgroup]
15Download action repository 'actions/checkout@v4'
16Download action repository 'actions/cache@v4'
17##[group]Run actions/checkout@v4
18 with:
19 fetch-depth: 20
20 lfs: false
21##[endgroup]
22Syncing repository: acme/ledger
23##[group]Getting Git version info
24Working directory is '/home/runner/work/ledger/ledger'
25##[endgroup]
26/usr/bin/git checkout --progress --force 8ad41f02
27##[group]Run actions/cache@v4
28 with:
29 path: ~/.cache
30 key: Linux-deps-8ad41f02
31##[endgroup]
32Received 41943040 of 41943040 (100.0%), 40.0 MBs/sec
33Cache restored from key: Linux-deps-8ad41f02
34##[group]Run ruby --version
35ruby --version
36bundle install --jobs 4 --retry 3
37bundle exec rspec --format progress
38shell: /usr/bin/bash -e {0}
39##[endgroup]
40ruby 3.3.4 (2024-07-09 revision be1089c8ec) [x86_64-linux]
41Bundle complete! 42 Gemfile dependencies, 118 gems now installed.
42.........................F.....
43
44Failures:
45
46 1) Checkout::Total applies the loyalty discount before tax
47 Failure/Error: expect(checkout.total_cents).to eq 2_700
48
49 expected: 2700
50 got: 3000
51
52 (compared using ==)
53 # ./spec/checkout/total_spec.rb:48:in `block (3 levels) in <top (required)>'
54
55Finished in 1.84 seconds (files took 2.31 seconds to load)
5631 examples, 1 failure
57
58Failed examples:
59
60rspec ./spec/checkout/total_spec.rb:44 # Checkout::Total applies the loyalty discount before tax
61##[error]Process completed with exit code 1.
62##[group]Post Run actions/checkout@v4
63##[endgroup]
64/usr/bin/git version
65git version 2.54.0
66##[group]Post Run actions/upload-artifact@v4
67##[endgroup]
68Artifact upload complete.
69Post job cleanup.
70Cleaning up orphan processes