You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/src/changelog.md
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,42 @@ toc_depth: 1
9
9
This page documents new features and bugfixes for cargo-nextest. Please see the [stability
10
10
policy](https://nexte.st/docs/stability/) for how versioning works with cargo-nextest.
11
11
12
+
## [0.9.115] - 2025-12-14
13
+
14
+
### Added
15
+
16
+
- Nextest profiles now support [inheritance](https://nexte.st/docs/configuration/#profile-inheritance) via the `inherits` key. For example:
17
+
18
+
```toml
19
+
[profile.ci]
20
+
retries = 2
21
+
22
+
[profile.ci-extended]
23
+
inherits = "ci"
24
+
slow-timeout = "120s"
25
+
```
26
+
27
+
Thanks [asder8215](https://github.com/asder8215) for your first contribution! ([#2786])
28
+
29
+
- A new `on-timeout` option for `slow-timeout` allows tests that time out to be treated as successes instead of failures. This is useful for fuzz tests, or other tests where a timeout indicates no failing input was found. For example:
Tests that time out and pass are marked `TMPASS`. See [_Configuring timeout behavior_](https://nexte.st/docs/features/slow-tests/#configuring-timeout-behavior) for more information.
38
+
39
+
Thanks [eduardorittner](https://github.com/eduardorittner) for your first contribution! ([#2742])
Copy file name to clipboardExpand all lines: site/src/docs/configuration/index.md
+30-4Lines changed: 30 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,28 @@ After checking the profile into `.config/nextest.toml`, use `cargo nextest --pro
28
28
!!! note "Default profiles"
29
29
30
30
Nextest's embedded configuration may define new profiles whose names start with `default-` in the future. To avoid backwards compatibility issues, do not name custom profiles starting with `default-`.
31
+
32
+
### Profile inheritance
33
+
34
+
<!-- md:version 0.9.115 -->
35
+
36
+
By default, all custom profiles inherit their configuration from the profile named `default`. To inherit from another profile, specify the `inherits` key:
37
+
38
+
```toml title="Inheriting from another profile in <code>.config/nextest.toml</code>"
39
+
[profile.ci]
40
+
fail-fast = false
41
+
slow-timeout = "60s"
42
+
43
+
[profile.ci-extended]
44
+
inherits = "ci"
45
+
slow-timeout = "300s"
46
+
```
47
+
48
+
A series of profile `inherits` keys form an _inheritance chain_, and configuration lookups are done by iterating over the chain.
49
+
50
+
!!! note "The default profile cannot inherit from another profile"
51
+
52
+
The `default` profile cannot be made to inherit from another profile; it is always at the root of any inheritance chain.
31
53
32
54
## Tool-specific configuration
33
55
@@ -58,13 +80,17 @@ Configuration is resolved in the following order:
58
80
then, if `--profile ci` is selected, failing tests are retried up to 2 times.
59
81
60
82
5. If a profile is specified, tool-specific configuration for the given profile.
61
-
6. Repository-specific configuration for the `default` profile. For example, if the repository-specific configuration looks like:
83
+
6. For each profile in the inheritance chain, which always terminates at the `default` profile:
84
+
1. Repository-specific configuration for that profile profile. For example, if the repository-specific configuration looks like:
62
85
```toml
63
-
[profile.default]
86
+
[profile.ci-extended]
87
+
inherits = "ci"
88
+
89
+
[profile.ci]
64
90
retries = 5
65
91
```
66
-
then failing tests are retried up to 5 times.
67
-
7. Tool-specific configuration for the `default` profile.
92
+
then, with the `ci-extended` profile, failing tests are retried up to 5 times.
93
+
b. Tool-specific configuration for that profile.
68
94
8. The [default configuration](reference.md#default-configuration), which is that tests are never retried.
0 commit comments