← Catalogue

rust_test

`cargo test`'s `failures:` block through to the `test result:` line.

rusttesttoolmatcher

Open in playgroundFile on GitHubHistory

Install: ci-doctor matchers add official/rust_test

matchers/rust/rust_test/matcher.yaml

id: rust_testrole: toolclassification: [rust, test]description: '`cargo test`''s `failures:` block through to the `test result:` line.'start: ^failures:$end: '^test result:'

In bundles

allrust

Fixtures

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

rust_test_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: rust_test_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 cargo --version
35cargo --version
36cargo build --locked
37cargo test --locked
38shell: /usr/bin/bash -e {0}
39##[endgroup]
40cargo 1.79.0 (ffa9cf99a 2024-06-03)
41 Compiling ledger v0.4.1 (/builds/team/ledger)
42 Finished dev [unoptimized + debuginfo] target(s) in 21.44s
43 Compiling ledger v0.4.1 (/builds/team/ledger)
44 Finished test [unoptimized + debuginfo] target(s) in 18.02s
45 Running unittests src/lib.rs (target/debug/deps/ledger-3c7b1a9d)
46
47running 24 tests
48test balance::tests::zero_balance ... ok
49test balance::tests::credit_then_debit ... ok
50test posting::tests::rejects_future_date ... ok
51test posting::tests::rounds_half_even ... ok
52test posting::tests::applies_fx_rate ... FAILED
53
54failures:
55
56---- posting::tests::applies_fx_rate stdout ----
57thread 'posting::tests::applies_fx_rate' panicked at src/posting.rs:212:9:
58assertion `left == right` failed: fx conversion lost precision
59 left: 10499
60 right: 10500
61note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
62
63failures:
64 posting::tests::applies_fx_rate
65
66test result: FAILED. 23 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s
67
68error: test failed, to rerun pass `--lib`
69##[error]Process completed with exit code 101.
70##[group]Post Run actions/checkout@v4
71##[endgroup]
72/usr/bin/git version
73git version 2.54.0
74##[group]Post Run actions/upload-artifact@v4
75##[endgroup]
76Artifact upload complete.
77##[warning]target/nextest/: no matching files. Ensure that the artifact path is relative to the working directory
78Post job cleanup.
79Cleaning up orphan processes