@@ -204,16 +204,25 @@ frameworks are defined:
204
204
name = " test"
205
205
provider = { test = " 1.0" }
206
206
folders = [" tests" ]
207
+ lib = false
208
+
209
+ [[testing .frameworks ]]
210
+ name = " test-unit"
211
+ provider = { test = " 1.0" }
212
+ folders = []
213
+ lib = true
207
214
208
215
[[testing .frameworks ]]
209
216
name = " bench"
210
217
provider = { ?? = "1.0" }
211
218
folders = [" benches" ]
219
+ lib = true # could also be split into two
212
220
213
221
[[testing .frameworks ]]
214
222
name = " example"
215
223
provider = { ?? = "1.0" }
216
224
folders = [" examples" ]
225
+ lib = false
217
226
```
218
227
219
228
Whereas having two frameworks of the same name is an error, if you define
@@ -234,11 +243,14 @@ customized:
234
243
235
244
``` toml
236
245
[testing .set .test ]
237
- frameworks = [test, quickcheck, examples]
246
+ frameworks = [test, test-unit, quickcheck, examples]
247
+
248
+ # Default set is [test, test-unit]
238
249
```
239
250
240
251
This means that `cargo test` will, aside from doctests, run `cargo
241
- test --framework test`, `cargo test --framework quickcheck`, and `cargo test --framework examples`
252
+ test --framework test`, `cargo test --framework test-unit`,
253
+ `cargo test --framework quickcheck`, and `cargo test --framework examples`
242
254
(and similar stuff for `cargo bench`). It is not possible to make `cargo
243
255
test` _not_ run doctests. If both a framework and a set exists with a
244
256
given name, the set takes precedence.
0 commit comments