Skip to content

Commit d8ae1f5

Browse files
committed
[meta] prepare releases
1 parent 017d6eb commit d8ae1f5

File tree

6 files changed

+32
-19
lines changed

6 files changed

+32
-19
lines changed

cargo-nextest/src/dispatch.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,8 +1004,8 @@ struct ReporterOpts {
10041004
///
10051005
/// This option has no effect with **--no-capture**, since that passes
10061006
/// through standard output and standard error.
1007-
#[arg(long, env = "NEXTEST_NO_INDENT_OUTPUT", value_parser = BoolishValueParser::new())]
1008-
no_indent_output: bool,
1007+
#[arg(long, env = "NEXTEST_NO_OUTPUT_INDENT", value_parser = BoolishValueParser::new())]
1008+
no_output_indent: bool,
10091009

10101010
/// Disable handling of input keys from the terminal.
10111011
///
@@ -1090,7 +1090,7 @@ impl ReporterOpts {
10901090
builder.set_final_status_level(final_status_level.into());
10911091
}
10921092
builder.set_hide_progress_bar(self.hide_progress_bar);
1093-
builder.set_no_indent_output(self.no_indent_output);
1093+
builder.set_no_output_indent(self.no_output_indent);
10941094
builder
10951095
}
10961096
}

nextest-runner/src/reporter/displayer/imp.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub(crate) struct DisplayReporterBuilder {
4242
pub(crate) should_colorize: bool,
4343
pub(crate) no_capture: bool,
4444
pub(crate) hide_progress_bar: bool,
45-
pub(crate) no_indent_output: bool,
45+
pub(crate) no_output_indent: bool,
4646
}
4747

4848
impl DisplayReporterBuilder {
@@ -118,7 +118,7 @@ impl DisplayReporterBuilder {
118118
final_status_level: self.status_levels.final_status_level,
119119
},
120120
no_capture: self.no_capture,
121-
no_indent_output: self.no_indent_output,
121+
no_output_indent: self.no_output_indent,
122122
styles,
123123
theme_characters,
124124
cancel_status: None,
@@ -220,7 +220,7 @@ struct DisplayReporterImpl<'a> {
220220
default_filter: CompiledDefaultFilter,
221221
status_levels: StatusLevels,
222222
no_capture: bool,
223-
no_indent_output: bool,
223+
no_output_indent: bool,
224224
styles: Box<Styles>,
225225
theme_characters: ThemeCharacters,
226226
cancel_status: Option<CancelReason>,
@@ -1516,7 +1516,7 @@ impl<'a> DisplayReporterImpl<'a> {
15161516
// ── stderr ──
15171517
// <test stderr>
15181518
let (six_char_start, six_char_end, eight_char_start, eight_char_end, output_indent) =
1519-
if self.no_indent_output {
1519+
if self.no_output_indent {
15201520
(
15211521
self.theme_characters.hbar(2),
15221522
self.theme_characters.hbar(2),
@@ -1816,7 +1816,7 @@ mod tests {
18161816
should_colorize: false,
18171817
no_capture: true,
18181818
hide_progress_bar: false,
1819-
no_indent_output: false,
1819+
no_output_indent: false,
18201820
};
18211821
let output = ReporterStderr::Buffer(out);
18221822
let reporter = builder.build(output);

nextest-runner/src/reporter/imp.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub struct ReporterBuilder {
4141

4242
verbose: bool,
4343
hide_progress_bar: bool,
44-
no_indent_output: bool,
44+
no_output_indent: bool,
4545
}
4646

4747
impl ReporterBuilder {
@@ -98,8 +98,8 @@ impl ReporterBuilder {
9898
}
9999

100100
/// Set to true to disable indentation of captured test output.
101-
pub fn set_no_indent_output(&mut self, no_indent_output: bool) -> &mut Self {
102-
self.no_indent_output = no_indent_output;
101+
pub fn set_no_output_indent(&mut self, no_output_indent: bool) -> &mut Self {
102+
self.no_output_indent = no_output_indent;
103103
self
104104
}
105105
}
@@ -132,7 +132,7 @@ impl ReporterBuilder {
132132
should_colorize: self.should_colorize,
133133
no_capture: self.no_capture,
134134
hide_progress_bar: self.hide_progress_bar,
135-
no_indent_output: self.no_indent_output,
135+
no_output_indent: self.no_output_indent,
136136
}
137137
.build(output);
138138

site/src/changelog.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,18 @@ toc_depth: 1
88
This page documents new features and bugfixes for cargo-nextest. Please see the [stability
99
policy](https://nexte.st/docs/stability/) for how versioning works with cargo-nextest.
1010

11-
## [0.9.95-rc.2] - 2025-04-29
11+
## [0.9.95] - 2025-04-30
1212

13-
Display formatting improvements.
13+
### Added
1414

15-
## [0.9.95-rc.1] - 2025-04-28
15+
You can now mark [leaky tests](https://nexte.st/docs/features/leaky-tests/) as failed rather than passed. The default is still to treat them as passed. For more, see [*Marking leaky tests as failures*](https://nexte.st/docs/features/leaky-tests/#marking-leaky-tests-as-failures).
1616

17-
### Added
17+
### Changed
18+
19+
Several display formatting improvements with a focus on visual clarity and reduced UI clutter:
1820

19-
You can now mark [leaky tests](https://nexte.st/docs/features/leaky-tests/) as failed rather than passed (docs upcoming). The default is still to treat them as passed.
21+
- Captured output (typically for failing tests) is now indented by 4 spaces, for easier-to-scan logs. This can be disabled with [the new `--no-output-indent` option](http://nexte.st/docs/reporting/#other-options), or by setting `NEXTEST_NO_OUTPUT_INDENT=1` in the environment.
22+
- If tests abort or fail through unexpected means (e.g. due to a signal), nextest now prints out a status line explaining what happened. For example, `(test aborted with signal 6: SIGABRT)`.
2023

2124
### Fixed
2225

@@ -1432,8 +1435,7 @@ Supported in this initial release:
14321435
- [Test retries](https://nexte.st/book/retries.md) and flaky test detection
14331436
- [JUnit support](https://nexte.st/book/junit.md) for integration with other test tooling
14341437

1435-
[0.9.95-rc.2]: https://github.com/nextest-rs/nextest/releases/tag/cargo-nextest-0.9.95-rc.2
1436-
[0.9.95-rc.1]: https://github.com/nextest-rs/nextest/releases/tag/cargo-nextest-0.9.95-rc.1
1438+
[0.9.95]: https://github.com/nextest-rs/nextest/releases/tag/cargo-nextest-0.9.95
14371439
[0.9.94]: https://github.com/nextest-rs/nextest/releases/tag/cargo-nextest-0.9.94
14381440
[0.9.93]: https://github.com/nextest-rs/nextest/releases/tag/cargo-nextest-0.9.93
14391441
[0.9.92]: https://github.com/nextest-rs/nextest/releases/tag/cargo-nextest-0.9.92

site/src/docs/configuration/env-vars.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ Nextest reads some of its command-line options as environment variables. In all
3737
`NEXTEST_FAILURE_OUTPUT`
3838
: Display output for failing tests (see [_Displaying captured test output_](../reporting.md#displaying-captured-test-output))
3939

40+
`NEXTEST_NO_INPUT_HANDLER`
41+
: <!-- md:version 0.9.86 --> Disable [interactive keyboard handling](../reporting.md#live-output)
42+
43+
`NEXTEST_NO_OUTPUT_INDENT`
44+
: <!-- md:version 0.9.95 --> Disable [indentation of captured test output](../reporting.md#other-options)
45+
4046
`NEXTEST_VERBOSE`
4147
: Verbose output
4248

site/src/docs/reporting.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ The possible values are:
111111

112112
These options can also be configured via [global configuration](configuration/index.md) and [per-test overrides](configuration/per-test-overrides.md). Specifying these options over the command line will override configuration settings.
113113

114+
#### Other options for completed tests { #other-options }
115+
116+
`--no-output-indent` <!-- md:version 0.9.95 -->
117+
: By default, nextest indents captured output by 4 spaces for visual clarity. This flag disables that behavior. Can also be set through `NEXTEST_NO_OUTPUT_INDENT=1` in the environment.
118+
114119
## Options and arguments
115120

116121
For a full list of options, see the [options and arguments](running.md#options-and-arguments) for `cargo nextest run`.

0 commit comments

Comments
 (0)