minitest
Minitest's numbered `1) Failure:` entries and the assertion beneath each one.
rubytesttoolmatcher
Install: ci-doctor matchers add official/minitest
matchers/ruby/minitest/matcher.yaml
id: minitestrole: toolclassification: [ruby, test]description: Minitest's numbered `1) Failure:` entries and the assertion beneath each one.pattern: '^\s*\d+\) (Failure|Error):'after: 10
In bundles
Fixtures
Framing stripped per provider. Highlighted lines are what this matcher selects; the marked line is the anchor.
minitest_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: minitest_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 bundle exec rake test
35bundle exec rake test
36shell: /usr/bin/bash -e {0}
37##[endgroup]
38Run options: --seed 46213
39
40# Running:
41
42.......F...
43
44 1) Failure:
45CartTest#test_discount_is_applied_before_tax [test/cart_test.rb:52]:
46Expected: 2700
47 Actual: 3000
48
49rails test test/cart_test.rb:49
50
51Finished in 0.482913s, 22.7787 runs/s, 45.5575 assertions/s.
5211 runs, 22 assertions, 1 failures, 0 errors, 0 skips
53##[error]Process completed with exit code 1.
54##[group]Post Run actions/checkout@v4
55##[endgroup]
56/usr/bin/git version
57git version 2.54.0
58##[group]Post Run actions/upload-artifact@v4
59##[endgroup]
60Artifact upload complete.
61Post job cleanup.
62Cleaning 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 ...
5Using Docker executor with image ruby:3.3 ...
6Using docker image sha256:9a8b7c6d5e4f for ruby:3.3 with digest ruby@sha256:2b1c...
7Preparing environment
8Running on runner-rb3mn8kw-project-29-concurrent-1...
9Fetching changes with git depth set to 50...
10Checking out b70e2c94 as detached HEAD...
11Checking cache for bundler-3.3-default...
12Successfully extracted cache
13$ bundle exec rake test
14Run options: --seed 46213
15
16# Running:
17
18.......F...
19
20 1) Failure:
21CartTest#test_discount_is_applied_before_tax [test/cart_test.rb:52]:
22Expected: 2700
23 Actual: 3000
24
25rails test test/cart_test.rb:49
26
27Finished in 0.482913s, 22.7787 runs/s, 45.5575 assertions/s.
2811 runs, 22 assertions, 1 failures, 0 errors, 0 skips
29Running after_script
30$ echo "tests failed"
31tests failed
32Uploading artifacts for failed job
33Uploading artifacts as "archive" to coordinator... 201 Created
34ERROR: Job failed: exit code 1