Unverified Commit b37df78b authored by 0x4A6F's avatar 0x4A6F Committed by GitHub
Browse files

doc/languages-frameworks/rust: example for disabling tests (#198705)

parent 78723ab9
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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,