summaryrefslogtreecommitdiff
path: root/docs/testing.md
diff options
context:
space:
mode:
authorRob Waller <rdwaller1984@googlemail.com>2020-06-16 22:17:00 +0100
committerGitHub <noreply@github.com>2020-06-16 17:17:00 -0400
commitb86514aa7e135437beffbe3e1f473f16967dabc4 (patch)
tree88ffcb7092ce681ae9ea54fed5e6a1668948043e /docs/testing.md
parentb3c72d1e4554b5fd58cbf3ba2fbf56275446447b (diff)
docs: testing filter info (#6313)
Diffstat (limited to 'docs/testing.md')
-rw-r--r--docs/testing.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/testing.md b/docs/testing.md
index 67c472b80..6fc76b8c1 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.