@@ -173,7 +173,6 @@ This section works like this:
173
173
174
174
``` rust
175
175
[testing . framework]
176
- name = " bench" # mandatory
177
176
folders = [" bench" ]
178
177
lib = true # true by default
179
178
single - target = true # false by default
@@ -194,7 +193,7 @@ under a new `[[testing.frameworks]]` section in their
194
193
``` toml
195
194
[[testing .frameworks ]]
196
195
provider = { rust-fuzz = " 1.0" }
197
- name = " fuzz" # optional, overrides `name` on framework crate
196
+ name = " fuzz" # optional, overrides the crate name
198
197
folders = [" fuzz" ] # optional, overrides `folders` on framework crate
199
198
lib = false # optional, overrides `lib` on framework crate
200
199
```
@@ -209,12 +208,6 @@ frameworks are defined:
209
208
name = " test"
210
209
provider = { test = " 1.0" }
211
210
folders = [" tests" ]
212
- lib = false
213
-
214
- [[testing .frameworks ]]
215
- name = " test-unit"
216
- provider = { test = " 1.0" }
217
- folders = []
218
211
lib = true
219
212
220
213
[[testing .frameworks ]]
@@ -241,26 +234,6 @@ arguments are passed to the testing binary. By convention, the
241
234
first position argument should allow filtering which targets
242
235
(tests/benchmarks/etc.) are run.
243
236
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
-
264
237
You can also add targets to a framework a la ` [[test]] ` and ` [[example]] ` via ` [[testing.target]] `
265
238
266
239
``` toml
@@ -292,7 +265,7 @@ like json output and whatnot.
292
265
293
266
- This adds more sections to ` Cargo.toml ` .
294
267
- 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.
296
269
- Flags and command-line parameters for test and bench will now vary
297
270
between testing frameworks, which may confuse users as they move
298
271
between crates.
0 commit comments