Skip to content

Commit 6b33c62

Browse files
committed
[site] some updates
`running.md` was becoming too unwieldy, so make a new page called `selecting.md`.
1 parent 965e265 commit 6b33c62

File tree

13 files changed

+196
-140
lines changed

13 files changed

+196
-140
lines changed

site/mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ nav:
8383
- docs/installation/release-urls.md
8484
- "Using nextest":
8585
- docs/running.md
86+
- docs/selecting.md
8687
- docs/listing.md
8788
- docs/reporting.md
8889
- "Features":

site/src/changelog.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
icon: material/list-box
3+
description: Changelog for cargo-nextest.
34
toc_depth: 1
45
---
56

@@ -8,6 +9,27 @@ toc_depth: 1
89
This page documents new features and bugfixes for cargo-nextest. Please see the [stability
910
policy](https://nexte.st/docs/stability/) for how versioning works with cargo-nextest.
1011

12+
## Unreleased
13+
14+
### Added
15+
16+
- Nextest now supports running tests under a debugger! Use `--debugger` to run a single test under gdb, lldb, WinDbg, CodeLLDB in Visual Studio Code, and other debuggers. For more information, see [_Debugger integration_](https://nexte.st/docs/integrations/debuggers/).
17+
18+
### Changed
19+
20+
- Nextest now sets `NEXTEST_BIN_EXE_*` environment variables with hyphens in binary names replaced by underscores, in addition to the existing variables with hyphens. This works around some shells and debuggers that drop environment variables containing hyphens. ([#2777])
21+
22+
### Fixed
23+
24+
- Fixed a panic when attempting to display progress during retries. ([#2771])
25+
- With [stress tests](https://nexte.st/docs/features/stress-tests/), the progress bar no longer overwrites unrelated output. ([#2765])
26+
- During [the list phase](https://nexte.st/docs/listing/), invalid output lines with control characters in them are now properly escaped. ([#2772])
27+
28+
[#2777]: https://github.com/nextest-rs/nextest/pull/2777
29+
[#2771]: https://github.com/nextest-rs/nextest/pull/2771
30+
[#2765]: https://github.com/nextest-rs/nextest/pull/2765
31+
[#2772]: https://github.com/nextest-rs/nextest/pull/2772
32+
1133
## [0.9.111] - 2025-11-04
1234

1335
### Added

site/src/docs/ci-features/archiving.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ See [this working example](https://github.com/nextest-rs/reuse-build-partition-e
147147

148148
## Example: Cross-compilation
149149

150-
While cross-compiling code, some tests may need to be run on the host platform. (See [_Filtering by build platform_](../running.md#filtering-by-build-platform) for more.)
150+
While cross-compiling code, some tests may need to be run on the host platform. (See [_Filtering by build platform_](../selecting.md#filtering-by-build-platform) for more.)
151151

152152
### On the build machine
153153

site/src/docs/configuration/per-test-overrides.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ for more information.
4747
: In [JUnit reports](../machine-readable/junit.md), whether to store output for passing and failing tests, respectively.
4848

4949
`default-filter` <!-- md:version 0.9.84 -->
50-
: The [default filter](../running.md#running-a-subset-of-tests-by-default) on this platform. Only supported for overrides that specify `platform` and not `filter`.
50+
: The [default filter](../selecting.md#running-a-subset-of-tests-by-default) on this platform. Only supported for overrides that specify `platform` and not `filter`.
5151

5252
`run-extra-args` <!-- md:version 0.9.86 -->
5353
: [Extra arguments](extra-args.md) to pass to the test binary.

site/src/docs/configuration/reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Profiles are configured under `[profile.<name>]`. The default profile is called
7575

7676
- **Type**: String (filterset expression)
7777
- **Description**: The default set of tests to run
78-
- **Documentation**: [_Running a subset of tests by default_](../running.md#running-a-subset-of-tests-by-default)
78+
- **Documentation**: [_Running a subset of tests by default_](../selecting.md#running-a-subset-of-tests-by-default)
7979
- **Default**: `all()`: all tests are run
8080
- **Example**: `default-filter = "not test(very_slow_tests)"`
8181

@@ -326,7 +326,7 @@ At least one of these filters must be specified.
326326

327327
- **Type**: String (filterset expression)
328328
- **Description**: Override the default filter for specific platforms
329-
- **Documentation**: [_Running a subset of tests by default_](../running.md#running-a-subset-of-tests-by-default)
329+
- **Documentation**: [_Running a subset of tests by default_](../selecting.md#running-a-subset-of-tests-by-default)
330330
- **Note**: Can only be used with `platform` specification
331331

332332
#### `priority`

site/src/docs/configuration/specifying-platforms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ With this configuration:
5959

6060
### Host tests
6161

62-
While cross-compiling code, some tests may need to be run on the host platform. (See the note about [Filtering by build platform](../running.md#filtering-by-build-platform) for more.)
62+
While cross-compiling code, some tests may need to be run on the host platform. (See the note about [Filtering by build platform](../selecting.md#filtering-by-build-platform) for more.)
6363

6464
For tests that run on the host platform, to figure out if an override applies nextest will compute the result of the _target_ filter against the _host_ platform. (If the `host` key is specified, it will be considered as well based on the AND semantics listed above.)
6565

site/src/docs/features/target-runners.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ cargo nextest run --target x86_64-pc-windows-msvc
4040

4141
## Cross-compiling
4242

43-
While cross-compiling code, some tests may need to be run on the host platform. (See [_Filtering by build platform_](../running.md#filtering-by-build-platform) for more.)
43+
While cross-compiling code, some tests may need to be run on the host platform. (See [_Filtering by build platform_](../selecting.md#filtering-by-build-platform) for more.)
4444

4545
For tests that run on the host platform, nextest uses the target runner defined for the host.
4646

site/src/docs/filtersets/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ icon: material/account-filter
77
Nextest supports a domain-specific language (DSL) for choosing sets of tests called **filtersets** (formerly **filter expressions**). The DSL is inspired by [Bazel's query language](https://bazel.build/query/quickstart), and
88
is most similar to _revsets_ as implemented in the [Jujutsu](https://martinvonz.github.io/jj/latest/revsets/) and [Mercurial](https://www.mercurial-scm.org/repo/hg/help/revsets) source control systems.
99

10-
Filtersets are specified on the command line with `-E`, or `--filterset` <!-- md:version 0.9.76 -->. (In prior versions of nextest, use `--filter-expr`.)
10+
Filtersets are specified on the command line with `-E` or `--filterset`.
1111

1212
## Example: Running all tests in a crate and its dependencies
1313

@@ -58,7 +58,7 @@ cargo nextest run -E 'test(my_test) + package(my-crate)'
5858

5959
<!-- md:version 0.9.77 -->
6060

61-
If [a default filter](../running.md#running-a-subset-of-tests-by-default) for tests is configured,
61+
If [a default filter](../selecting.md#running-a-subset-of-tests-by-default) for tests is configured,
6262
filtersets on the command line are intersected with the default filter.
6363

6464
To match against all tests, not just the default set, pass in `--ignore-default-filter`.

site/src/docs/filtersets/reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ This section contains the full set of operators supported by the filterset DSL.
3636
: Include all tests in binary names matching `name-matcher`. For unit tests, the binary name is the same as the name of the crate. Otherwise, it's the name of the integration test, benchmark, or binary target.
3737

3838
`platform(host)` or `platform(target)`
39-
: Include all tests that are [built for the host or target platform](../running.md#filtering-by-build-platform), respectively.
39+
: Include all tests that are [built for the host or target platform](../selecting.md#filtering-by-build-platform), respectively.
4040

4141
`default()` <!-- md:version 0.9.75 -->
42-
: The default set of tests to run; see [_Running a subset of tests by default_](../running.md#running-a-subset-of-tests-by-default) for more information.
42+
: The default set of tests to run; see [_Running a subset of tests by default_](../selecting.md#running-a-subset-of-tests-by-default) for more information.
4343

4444
!!! tip "Binary exclusions"
4545

site/src/docs/integrations/debuggers.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
icon: material/debug-step-over
3+
description: Integrating with gdb, lldb, Visual Studio Code, and other debuggers.
34
---
45

56
# Debugger integration
@@ -8,8 +9,8 @@ icon: material/debug-step-over
89

910
With nextest, you can run individual tests under a text-based or graphical debugger. Supported debuggers include:
1011

11-
* [GDB](https://sourceware.org/gdb/)
12-
* [LLDB](https://lldb.llvm.org/)
12+
* [gdb](https://sourceware.org/gdb/)
13+
* [lldb](https://lldb.llvm.org/)
1314
* [WinDbg](https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/)
1415
* [CodeLLDB](https://github.com/vadimcn/codelldb) in Visual Studio Code, via [`codelldb-launch`](https://github.com/vadimcn/codelldb/tree/master/src/codelldb-launch).
1516

@@ -25,13 +26,13 @@ In debugger mode, nextest will:
2526

2627
## Examples
2728

28-
Run the test matching `my_test` under [GDB](https://sourceware.org/gdb/), using `rust-gdb`:
29+
Run the test matching `my_test` under [gdb](https://sourceware.org/gdb/), using `rust-gdb`:
2930

3031
```sh
3132
cargo nextest run --debugger "rust-gdb --args" my_test
3233
```
3334

34-
Run the test matching `my_test` under [LLDB](https://lldb.llvm.org/), using `rust-lldb`:
35+
Run the test matching `my_test` under [lldb](https://lldb.llvm.org/), using `rust-lldb`:
3536

3637
```sh
3738
cargo nextest run --debugger "rust-lldb --" my_test

0 commit comments

Comments
 (0)