Crates.io | group-runner |
lib.rs | group-runner |
version | 0.1.2 |
source | src |
created_at | 2024-01-22 11:18:25.978301 |
updated_at | 2024-04-17 09:42:27.360894 |
description | Group Rust executable output in GitHub logs |
homepage | |
repository | https://github.com/smoelius/group-runner |
max_upload_size | |
id | 1108673 |
size | 96,939 |
Group Rust executable output in GitHub logs
group-runner
is useful, e.g., when you have lots of integration tests and seeing their output concatenated can be overwhelming.
In your GitHub workflow, install group-runner
:
steps:
- name: Install group-runner
run: cargo install group-runner
Pass the following option to cargo run
, cargo test
, or cargo bench
:
--config "target.'cfg(all())'.runner = 'group-runner'"
Example:
steps:
- name: Test
run: cargo test --config "target.'cfg(all())'.runner = 'group-runner'"
See The Cargo Book for more information.
To avoid mixing build output with test output, we recommend building tests in a separate step prior to running them. Example:
steps:
- name: Build
run: cargo test --no-run
- name: Test
run: cargo test --config "target.'cfg(all())'.runner = 'group-runner'"