Skip to content

Commit 1d9eaeb

Browse files
committed
Remove test sets, be clearer on the test names
1 parent 2ad3778 commit 1d9eaeb

File tree

1 file changed

+2
-29
lines changed

1 file changed

+2
-29
lines changed

text/0000-erfc-post-build-contexts.md

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ This section works like this:
173173

174174
```rust
175175
[testing.framework]
176-
name = "bench" # mandatory
177176
folders = ["bench"]
178177
lib = true # true by default
179178
single-target = true # false by default
@@ -194,7 +193,7 @@ under a new `[[testing.frameworks]]` section in their
194193
```toml
195194
[[testing.frameworks]]
196195
provider = { rust-fuzz = "1.0" }
197-
name = "fuzz" # optional, overrides `name` on framework crate
196+
name = "fuzz" # optional, overrides the crate name
198197
folders = ["fuzz"] # optional, overrides `folders` on framework crate
199198
lib = false # optional, overrides `lib` on framework crate
200199
```
@@ -209,12 +208,6 @@ frameworks are defined:
209208
name = "test"
210209
provider = { test = "1.0" }
211210
folders = ["tests"]
212-
lib = false
213-
214-
[[testing.frameworks]]
215-
name = "test-unit"
216-
provider = { test = "1.0" }
217-
folders = []
218211
lib = true
219212

220213
[[testing.frameworks]]
@@ -241,26 +234,6 @@ arguments are passed to the testing binary. By convention, the
241234
first position argument should allow filtering which targets
242235
(tests/benchmarks/etc.) are run.
243236

244-
To run multiple frameworks at once, a crate can declare testing
245-
*sets*. One such example is the `test` testing set, which
246-
will run doctests and the `test` and `examples` framework. This can be
247-
customized:
248-
249-
```toml
250-
[testing.set.test]
251-
frameworks = [test, test-unit, quickcheck, examples]
252-
253-
# Default set is [test, test-unit]
254-
```
255-
256-
This means that `cargo test` will, aside from doctests, run `cargo
257-
test --framework test`, `cargo test --framework test-unit`,
258-
`cargo test --framework quickcheck`, and `cargo test --framework examples`
259-
(and similar stuff for `cargo bench`). It is not possible to make `cargo
260-
test` _not_ run doctests. If both a framework and a set exists with a
261-
given name, the set takes precedence.
262-
263-
264237
You can also add targets to a framework a la `[[test]]` and `[[example]]` via `[[testing.target]]`
265238

266239
```toml
@@ -292,7 +265,7 @@ like json output and whatnot.
292265

293266
- This adds more sections to `Cargo.toml`.
294267
- This complicates the execution path for cargo, in that it now needs
295-
to know about testing frameworks and sets.
268+
to know about testing frameworks.
296269
- Flags and command-line parameters for test and bench will now vary
297270
between testing frameworks, which may confuse users as they move
298271
between crates.

0 commit comments

Comments
 (0)