Skip to content

Commit 0d8ce29

Browse files
committed
[meta] prepare releases
1 parent 0612900 commit 0d8ce29

File tree

6 files changed

+59
-17
lines changed

6 files changed

+59
-17
lines changed

LICENSE-MIT

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Copyright (c) The nextest Contributors
2+
13
Permission is hereby granted, free of charge, to any
24
person obtaining a copy of this software and associated
35
documentation files (the "Software"), to deal in the

nextest-metadata/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## [0.10.0] - 2023-12-09
4+
5+
### Added
6+
7+
- `RustBuildMetaSummary` has a new field called `build_script_out_dirs`. This is a map of workspace package IDs to their corresponding build script `OUT_DIR`s.
8+
9+
### Misc
10+
11+
- The `.crate` files uploaded to crates.io now contain the `LICENSE-APACHE` and `LICENSE-MIT` license files. Thanks [@musicinmybrain](https://github.com/musicinmybrain) for your first contribution!
12+
313
## [0.9.3] - 2023-12-03
414

515
### Added
@@ -187,6 +197,7 @@ This release is compatible with cargo-nextest 0.9.10 and later.
187197

188198
- Initial version, with support for listing tests.
189199

200+
[0.10.0]: https://github.com/nextest-rs/nextest/releases/tag/nextest-metadata-0.10.0
190201
[0.9.3]: https://github.com/nextest-rs/nextest/releases/tag/nextest-metadata-0.9.3
191202
[0.9.2]: https://github.com/nextest-rs/nextest/releases/tag/nextest-metadata-0.9.2
192203
[0.9.1]: https://github.com/nextest-rs/nextest/releases/tag/nextest-metadata-0.9.1

site/src/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ support:
3636
use case that would benefit from this, please [file an
3737
issue](https://github.com/nextest-rs/nextest/issues/new).
3838

39+
### Misc
40+
41+
- The `.crate` files uploaded to crates.io now contain the `LICENSE-APACHE` and `LICENSE-MIT` license files. Thanks [@musicinmybrain](https://github.com/musicinmybrain) for your first contribution!
42+
3943
## [0.9.64] - 2023-12-03
4044

4145
### Added

site/src/book/env-vars.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Nextest exposes these environment variables to your tests _at runtime only_. The
4949

5050
Nextest delegates to Cargo for the build, which controls the environment variables that are set. See [Environment variables Cargo sets for crates](https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates) for a full list.
5151

52-
Nextest also sets these environment variables at runtime, matching the behavior of cargo test:
52+
Nextest also sets these environment variables at runtime, matching the behavior of `cargo test`:
5353

5454
- `CARGO` — Path to the `cargo` binary performing the build.
5555
- `CARGO_MANIFEST_DIR` — The directory containing the manifest of your package. If [`--workspace-remap`](reusing-builds.md#specifying-a-new-location-for-the-workspace) is passed in, this is set to the remapped manifest directory. You can obtain the non-remapped directory using the value of this variable at compile-time, e.g. `env!("CARGO_MANIFEST_DIR")`.
@@ -66,6 +66,7 @@ Nextest also sets these environment variables at runtime, matching the behavior
6666
- `CARGO_PKG_LICENSE` — The license from the manifest of your package.
6767
- `CARGO_PKG_LICENSE_FILE` — The license file from the manifest of your package.
6868
- Environment variables specified in [the `[env]` section of `.cargo/config.toml`](https://doc.rust-lang.org/cargo/reference/config.html#env).
69+
- `OUT_DIR` — The path to the package's build script output directory. Only set if the crate has a build script.
6970

7071
### Dynamic library paths
7172

site/src/book/machine-readable.md

Lines changed: 36 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,51 +4,71 @@ cargo-nextest can be configured to produce machine-readable JSON output, readabl
44

55
## Listing tests
66

7-
To produce a list of tests in the JSON output format `cargo nextest list --message-format json` (or `json-pretty` for nicely formatted output). Here's some example output for the [tokio repository](https://github.com/tokio-rs/tokio):
7+
To produce a list of tests using the JSON output, use `cargo nextest list --message-format json` (or `json-pretty` for nicely formatted output). Here's some example output for [camino](https://github.com/camino-rs/camino):
88

99
```json
10-
% cargo nextest list -p tokio-util --features full --lib --message-format json-pretty
10+
% cargo nextest list --all-features --lib --message-format json-pretty
1111
{
1212
"rust-build-meta": {
13-
"target-directory": "/home/rain/dev/tokio/target",
13+
"target-directory": "/home/rain/dev/camino/target",
1414
"base-output-directories": [
1515
"debug"
1616
],
1717
"non-test-binaries": {},
18-
"linked-paths": []
18+
"build-script-out-dirs": {
19+
"camino 1.1.6 (path+file:///home/rain/dev/camino)": "debug/build/camino-02991de38c555ca1/out"
20+
},
21+
"linked-paths": [],
22+
"target-platforms": [
23+
{
24+
"triple": "x86_64-unknown-linux-gnu",
25+
"target-features": [
26+
"fxsr",
27+
"sse",
28+
"sse2"
29+
]
30+
}
31+
],
32+
"target-platform": null
1933
},
20-
"test-count": 4,
34+
"test-count": 5,
2135
"rust-suites": {
22-
"tokio-util": {
23-
"package-name": "tokio-util",
24-
"binary-id": "tokio-util",
25-
"binary-name": "tokio-util",
26-
"package-id": "tokio-util 0.7.3 (path+file:///home/rain/dev/tokio/tokio-util)",
36+
"camino": {
37+
"package-name": "camino",
38+
"binary-id": "camino",
39+
"binary-name": "camino",
40+
"package-id": "camino 1.1.6 (path+file:///home/rain/dev/camino)",
2741
"kind": "lib",
28-
"binary-path": "/home/me/dev/tokio/target/debug/deps/tokio_util-9dd5cbf268a3ffb4",
42+
"binary-path": "/home/rain/dev/camino/target/debug/deps/camino-1bdca073ddd4474a",
2943
"build-platform": "target",
30-
"cwd": "/home/me/dev/tokio/tokio-util",
44+
"cwd": "/home/rain/dev/camino",
3145
"status": "listed",
3246
"testcases": {
33-
"either::tests::either_is_async_read": {
47+
"serde_impls::tests::invalid_utf8": {
48+
"ignored": false,
49+
"filter-match": {
50+
"status": "matches"
51+
}
52+
},
53+
"serde_impls::tests::valid_utf8": {
3454
"ignored": false,
3555
"filter-match": {
3656
"status": "matches"
3757
}
3858
},
39-
"either::tests::either_is_stream": {
59+
"tests::test_borrowed_into": {
4060
"ignored": false,
4161
"filter-match": {
4262
"status": "matches"
4363
}
4464
},
45-
"time::wheel::level::test::test_slot_for": {
65+
"tests::test_deref_mut": {
4666
"ignored": false,
4767
"filter-match": {
4868
"status": "matches"
4969
}
5070
},
51-
"time::wheel::test::test_level_for": {
71+
"tests::test_owned_into": {
5272
"ignored": false,
5373
"filter-match": {
5474
"status": "matches"

site/src/book/reusing-builds.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,12 @@ In some cases, it can be useful to separate out building tests from running them
3131
- Metadata about test binaries, at the location `target/nextest/binaries-metadata.json`.
3232
- All test binaries
3333
- Other relevant files:
34+
3435
- Dynamic libraries that test binaries might link to
3536
- Non-test binaries used by integration tests
37+
- Starting nextest 0.9.65, build script output directories for workspace packages that have associated test binaries
38+
39+
> **NOTE:** Currently, `OUT_DIR`s are only archived one level deep to avoid bloating archives too much. In the future, we may add configuration to archive more or less of the output directory. If you have a use case that would benefit from this, please [file an issue](https://github.com/nextest-rs/nextest/issues/new).
3640
3741
**Note that archives do not include the source code for your project.** It is your responsibility to ensure that the source code for your workspace is transferred over to the target machine and has the same contents.
3842

0 commit comments

Comments
 (0)