Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bake-test-rust"
version = "0.3.1"
version = "0.3.2"
edition = "2024"
license = "MIT"
repository = "https://github.com/socketry/bake-test-rust"
Expand Down
13 changes: 5 additions & 8 deletions context/testing.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# Rust Testing Tasks

Add `bake-test-rust` as a dependency of the private `bake/` package and link it from `bake/src/main.rs`:
Add `bake-test-rust` as a dependency of the private `bake/` package and regenerate its task links:

```toml
[dependencies]
bake-test-rust = "0.3"
```

```rust,ignore
use bake_test_rust as _;
```sh
cargo bake --regenerate
cargo add --manifest-path bake/Cargo.toml bake-test-rust
cargo bake --regenerate
```

The package registers `test`, `test:coverage`, and `test:external` tasks. `test` runs `cargo test --workspace --locked`; `test:external` runs Cargo tests in the selected downstream repositories without `--locked`, because the lockfiles need to resolve local path patches.
Expand Down
21 changes: 8 additions & 13 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,10 @@ Rust provides a good test runner through Cargo, but it does not provide a shared

Add the task crate to the private `bake/` package:

```toml
[dependencies]
bake-test-rust = "0.3"
```

Link its tasks from `bake/src/main.rs`:

```rust,ignore
use bake_test_rust as _;
```sh
cargo bake --regenerate
cargo add --manifest-path bake/Cargo.toml bake-test-rust
cargo bake --regenerate
```

Then run the workspace tests:
Expand Down Expand Up @@ -51,6 +46,10 @@ Prepare a release with `cargo bake cargo:version:patch` (or `minor`, `major`, or

See [releases.md](releases.md) for the full release history.

### v0.3.2

- Use Cargo-selected dependency versions and generated task links in setup instructions.

### v0.3.1

- Adopt `socketry-project` 0.3.7 for shared project tasks and Markdown normalization.
Expand All @@ -61,10 +60,6 @@ See [releases.md](releases.md) for the full release history.

- Enforce complete source-region coverage, excluding regions inside invariant-only `unreachable!()` calls.

### v0.2.3

- Exclude uncovered, single-line `unreachable!("reason")` expressions from measured coverage automatically.

<!-- bake-readme:releases:end -->

## See Also
Expand Down
4 changes: 4 additions & 0 deletions releases.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Releases

## v0.3.2

- Use Cargo-selected dependency versions and generated task links in setup instructions.

## v0.3.1

- Adopt `socketry-project` 0.3.7 for shared project tasks and Markdown normalization.
Expand Down
Loading