diff options
author | 0x4A6F <0x4A6F@users.noreply.github.com> | 2022-10-31 22:39:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-31 22:39:34 +0100 |
commit | b37df78bfe96d0aff8489443bedcb6a69044f3ad (patch) | |
tree | da2bbd2b97dd5ffc1e86d43ef5a8368d395dbd95 /doc/languages-frameworks/rust.section.md | |
parent | 78723ab9c32dcb48fbe4f964b53c1b32658a7879 (diff) |
doc/languages-frameworks/rust: example for disabling tests (#198705)
Diffstat (limited to 'doc/languages-frameworks/rust.section.md')
-rw-r--r-- | doc/languages-frameworks/rust.section.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md index 0d4d5a1e83e1b..849c836b03fc0 100644 --- a/doc/languages-frameworks/rust.section.md +++ b/doc/languages-frameworks/rust.section.md @@ -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, |