summaryrefslogtreecommitdiff
path: root/docs/testing.md
AgeCommit message (Collapse)Author
2021-05-19docs: fix misspelling (#10683)Raika Toriyama
2021-04-27remove --unstable flag from CLI features (#10190)Bartek IwaƄczuk
2021-04-07docs: list globs used by `deno test` (#9976)yw662
2021-02-24feat: add "deno coverage" subcommand (#8664)Casper Beyer
This commit adds a new subcommand called "coverage" which can generate code coverage reports to stdout in multiple formats from code coverage profiles collected to disk. Currently this supports outputting a pretty printed diff and the lcov format for interoperability with third-party services and tools. Code coverage is still collected via other subcommands that run and collect code coverage such as "deno test --coverage=<directory>" but that command no longer prints a pretty printed report at the end of a test run with coverage collection enabled. The restrictions on which files that can be reported on has also been relaxed and are fully controllable with the include and exclude regular expression flags on the coverage subcommand. Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2021-02-24feat: add exit sanitizer to Deno.test (#9529)Casper Beyer
This adds an exit sanitizer to ensure that code being tested or dependencies of that code can't accidentally call "Deno.exit" leading to partial test runs and false results.
2020-12-29docs(testing): Add import line to test example (#8909)Maxim Zhukov
2020-11-22chore(cli/flags): Rename --failfast to --fail-fast (#8456)Nayeem Rahman
2020-10-26rename(std/testing): rename assert*Contains to assert*Includes (#7951)Tim Reichen
This commit renames two assertion functions to better align with JS API: - assertStringContains -> assertStringIncludes - assertArrayContains -> assertArrayIncludes
2020-09-27fix: Use $deno$test.ts instead of .deno.test.ts (#7717)Nayeem Rahman
2020-09-27feat(fmt): Sort named import and export specifiers (#7711)David Sherret
2020-09-22docs: V8 is a JavaScript engine, not a runtime (#7619)tokiedokie
2020-09-14docs(testing): describe coverage blackboxing rules (#7483)Casper Beyer
2020-09-13docs: manual updates for 1.4 features and changes (#7440)Luca Casonato
2020-08-24Typo (#7177)Danny Denenberg
2020-07-31feat: add $STD_VERSION replacement variable in docs (#6922)Luca Casonato
2020-07-07docs: Update testing.md (#6680)Sebastien Filion
2020-07-07feat(test): Add support for regex in filter flag (#6343)Sebastien Filion
Currently, the documentation makes it sound like the test subcommand's filter flag could accept some kind of pattern matching value like a glob or a regex, although the function "createFilterFn" accepts a regex as an argument, there's no way to pass an actual regex value from the CLI. This commit makes it possible to pass a string that could be cast as regex when string matches "^/.*/$". With this change, a user can use the filter flag as follow: deno test --filter "/test-.+/" Also tested that `\` get escaped properly, on MacOS at least, and this is also a valid flag: deno test --filter "/test-\d+/"
2020-06-25fix typo (#6476)champ
2020-06-18docs: Update standard library and testing manual pages (#6323)Chris Knight
2020-06-16docs: testing filter info (#6313)Rob Waller
2020-06-05deno test should run mjs files (#6122)Taisuke Fukuno
2020-05-25Add missing async delay import to code sample (#5837)Martin Suchanek
2020-05-21docs: fix test glob pattern (#5661)Maple Miao
2020-05-10Docs for deno test + minor other changes (#5185)Luca Casonato
* Added fs events example. * Added docs for `deno test`. * Renamed file server example. * Unified markdown code types. * Removed plugin topics from TOC. * Fixed links.