rspec
RSpec's `Failures:` block through to the `N examples, N failures` tally.
rubytesttoolmatcher
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
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
1Running with gitlab-runner 16.9.1 (d773c4a1)
2 on ruby-runner-04 Rb3Mn8Kw, system ID: s_44dd55ee66ff
3Preparing the "docker" executor
4 Using Docker executor with image ruby:3.3-slim ...
5Using Docker executor with image ruby:3.3-slim ...
6Using docker image sha256:9a8b7c6d5e4f for ruby:3.3-slim with digest ruby@sha256:2b1c...
7Preparing environment
8Running on runner-rb3mn8kw-project-29-concurrent-0...
9Fetching changes with git depth set to 50...
10Checking out 6d1fa47c as detached HEAD...
11Checking cache for bundler-3.3-default...
12Successfully extracted cache
13$ ruby --version
14ruby 3.3.4 (2024-07-09 revision be1089c8ec) [x86_64-linux]
15$ bundle install --jobs 4 --retry 3
16Bundle complete! 42 Gemfile dependencies, 118 gems now installed.
17$ bundle exec rspec --format progress
18.........................F.....
19
20Failures:
21
22 1) Checkout::Total applies the loyalty discount before tax
23 Failure/Error: expect(checkout.total_cents).to eq 2_700
24
25 expected: 2700
26 got: 3000
27
28 (compared using ==)
29 # ./spec/checkout/total_spec.rb:48:in `block (3 levels) in <top (required)>'
30
31Finished in 1.84 seconds (files took 2.31 seconds to load)
3231 examples, 1 failure
33
34Failed examples:
35
36rspec ./spec/checkout/total_spec.rb:44 # Checkout::Total applies the loyalty discount before tax
37Running after_script
38$ echo "specs failed, skipping deploy"
39specs failed, skipping deploy
40Uploading artifacts for failed job
41Uploading artifacts as "archive" to coordinator... 201 Created
42ERROR: Job failed: exit code 1