summaryrefslogtreecommitdiff
path: root/docs/testing/coverage.md
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-07-20 16:25:36 +0200
committerGitHub <noreply@github.com>2021-07-20 16:25:36 +0200
commitd744c0c6d9a557bbaa2a23571ffb3acabf19c35a (patch)
tree6f7fb8a71b786e79c48f4b2c11a5a9ca988717e8 /docs/testing/coverage.md
parent9b9becf1ae256b645e37a7eecf3441f3ae4b8ea5 (diff)
chore: move docs to separate repository
Diffstat (limited to 'docs/testing/coverage.md')
-rw-r--r--docs/testing/coverage.md36
1 files changed, 0 insertions, 36 deletions
diff --git a/docs/testing/coverage.md b/docs/testing/coverage.md
deleted file mode 100644
index 0899c7cbd..000000000
--- a/docs/testing/coverage.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# Test coverage
-
-Deno will collect test coverage into a directory for your code if you specify
-the `--coverage` flag when starting `deno test`.
-
-This coverage information is acquired directly from the JavaScript engine (V8)
-which is very accurate.
-
-This can then be further processed from the internal format into well known
-formats by the `deno coverage` tool.
-
-```bash
-# Go into your project's working directory
-git clone https://github.com/oakserver/oak && cd oak
-
-# Collect your coverage profile with deno test --coverage=<output_directory>
-deno test --coverage=cov_profile
-
-# From this you can get a pretty printed diff of uncovered lines
-deno coverage cov_profile
-
-# Or generate an lcov report
-deno coverage cov_profile --lcov > cov_profile.lcov
-
-# Which can then be further processed by tools like genhtml
-genhtml -o cov_profile/html cov_profile.lcov
-```
-
-By default, `deno coverage` will exclude any files matching the regular
-expression `test\.(js|mjs|ts|jsx|tsx)` and only consider including specifiers
-matching the regular expression `^file:` - ie. remote files will be excluded
-from coverage report.
-
-These filters can be overridden using the `--exclude` and `--include` flags. A
-module specifier must _match_ the include_regular expression and _not match_ the
-exclude_ expression for it to be a part of the report.