From daeba4c210820b43a48df62c2423a693d3d72917 Mon Sep 17 00:00:00 2001 From: aviad-dev <117904293+aviad-dev@users.noreply.github.com> Date: Thu, 9 Nov 2023 13:03:52 +0200 Subject: [PATCH 1/3] fix test name in cargo/test.md --- src/cargo/test.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/test.md b/src/cargo/test.md index f2af48db52..b31412ac32 100644 --- a/src/cargo/test.md +++ b/src/cargo/test.md @@ -135,7 +135,7 @@ Corro ``` What actually gets put into `ferris.txt` is this: ```shell -$ cargo test test_foo +$ cargo test test_file Corro Ferris Corro From 6b157aaf812460af68b136e07867b95ea8c2b6f6 Mon Sep 17 00:00:00 2001 From: aviad-dev <117904293+aviad-dev@users.noreply.github.com> Date: Fri, 17 Nov 2023 06:18:12 +0200 Subject: [PATCH 2/3] fix typo in the number of tests --- src/cargo/test.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/test.md b/src/cargo/test.md index b31412ac32..af9f0be077 100644 --- a/src/cargo/test.md +++ b/src/cargo/test.md @@ -42,13 +42,13 @@ $ cargo test Finished dev [unoptimized + debuginfo] target(s) in 0.89 secs Running target/debug/deps/blah-d3b32b97275ec472 -running 3 tests +running 4 tests test test_bar ... ok test test_baz ... ok test test_foo_bar ... ok test test_foo ... ok -test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out +test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out ``` You can also run tests whose name matches a pattern: From 3d15fdff6474749a0ab90ec8ed66435614c0e069 Mon Sep 17 00:00:00 2001 From: aviad-dev <117904293+aviad-dev@users.noreply.github.com> Date: Fri, 17 Nov 2023 06:21:29 +0200 Subject: [PATCH 3/3] small change to clarify concurrent test runs --- src/cargo/test.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/test.md b/src/cargo/test.md index af9f0be077..a86b8f831d 100644 --- a/src/cargo/test.md +++ b/src/cargo/test.md @@ -135,7 +135,7 @@ Corro ``` What actually gets put into `ferris.txt` is this: ```shell -$ cargo test test_file +$ cargo test test_file && cat ferris.txt Corro Ferris Corro