From b86514aa7e135437beffbe3e1f473f16967dabc4 Mon Sep 17 00:00:00 2001 From: Rob Waller Date: Tue, 16 Jun 2020 22:17:00 +0100 Subject: [PATCH] docs: testing filter info (#6313) --- docs/testing.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/testing.md b/docs/testing.md index 67c472b800..6fc76b8c16 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -105,3 +105,13 @@ You can also omit the file name, in which case all tests in the current directory (recursively) that match the glob `{*_,*.,}test.{js,mjs,ts,jsx,tsx}` will be run. If you pass a directory, all files in the directory that match this glob will be run. + +Tests can be run individually or in groups using the command line `--filter` +option. + +```shell +deno test --filter "hello world" tests/ +``` + +This command will run any test which contains the pattern "hello world" in its +name stored within the `tests/` directory.