From f9c91fda2f6bc8391f0bc33e102378d3740ec16b Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 16 Sep 2023 15:37:23 +0200 Subject: [PATCH] Document how to run the pure Rust tests --- CONTRIBUTING.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bd87e2d05..6f67eb828 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -137,6 +137,12 @@ If you also want to test the core utilities: cargo test -p uucore -p coreutils ``` +Or to test the pure Rust tests in the utility itself: + +```shell +cargo test -p uu_ls --lib +``` + Running the complete test suite might take a while. We use [nextest](https://nexte.st/index.html) in the CI and you might want to try it out locally. It can speed up the execution time of the whole test run significantly if the cpu has multiple cores.