Skip to content

Commit

Permalink
doc/languages-frameworks/rust: example for disabling tests (#198705)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4A6F committed Oct 31, 2022
1 parent 78723ab commit b37df78
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/languages-frameworks/rust.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,18 @@ The above are just guidelines, and exceptions may be granted on a case-by-case b
However, please check if it's possible to disable a problematic subset of the
test suite and leave a comment explaining your reasoning.

This can be achived with `--skip` in `checkFlags`:

```nix
rustPlatform.buildRustPackage {
/* ... */
checkFlags = [
# reason for disabling test
"--skip=example::tests:example_test"
];
}
```

#### Setting `test-threads` {#setting-test-threads}

`buildRustPackage` will use parallel test threads by default,
Expand Down

0 comments on commit b37df78

Please sign in to comment.