From c27028aa5ba162a3e114a5525fd8d03674fb7b0f Mon Sep 17 00:00:00 2001 From: Vanille-N Date: Fri, 26 Mar 2021 08:56:36 +0100 Subject: [PATCH] option --include-ignored is now available on stable 1.51 --- config/exercise_readme.go.tmpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/exercise_readme.go.tmpl b/config/exercise_readme.go.tmpl index c228b4606..20e15a65b 100644 --- a/config/exercise_readme.go.tmpl +++ b/config/exercise_readme.go.tmpl @@ -23,12 +23,18 @@ and remove the `#[ignore]` flag from the next test and get the tests to pass again. Each separate test is a function with `#[test]` flag above it. Continue, until you pass every test. -If you wish to run all ignored tests without editing the tests source file, use: +If you wish to run _only ignored tests_ without editing the tests source file, use: ```bash $ cargo test -- --ignored ``` +If you are using Rust 1.51 or later, you can run _all tests_ with + +```bash +$ cargo test -- --include-ignored +``` + To run a specific test, for example `some_test`, you can use: ```bash