summaryrefslogtreecommitdiff
path: root/std/testing
AgeCommit message (Collapse)Author
2020-04-04fix(std/testing): formatting bigint (#4626)Khải
2020-04-01refactor(cli/js/testing): Reduce testing interfaces (#4451)Nayeem Rahman
* Reduce "testing" interfaces * Use a callback instead of a generator for Deno.runTests() * Default RunTestsOptions::reportToConsole to true * Compose TestMessage into a single interface
2020-03-28Update to Prettier 2 and use ES Private Fields (#4498)Kitson Kelly
2020-03-20Add require-await lint rule (#4401)Samrith Shankar
2020-03-19fix(std/http): Fix respond error test on Windows (#4408)Nayeem Rahman
2020-03-19remove std/testing/runner.ts, use deno test for std/ tests (#4397)Bartek Iwańczuk
This introduces BREAKING CHANGE by removing "std/testing/runner.ts". Std tests are now run using "deno test" subcommand.
2020-03-19fix: std/testing/runner.ts and deno test (#4392)Bartek Iwańczuk
After splitting "failFast" and "exitOnFail" arguments, there was a situation where failing tests did not exit with code 1. * fixed argument value passed to Deno.runTests() in deno test * fixed argument value passed to Deno.runTests() in std/testing/runner.ts * added integration tests for deno test to ensure failFast and exitOnFail work as expected * don't write test file to file system, but keep it in memory
2020-03-18feat: Deno.test() sanitizes ops and resources (#4399)Bartek Iwańczuk
This PR brings assertOps and assertResources sanitizers to Deno.test() API. assertOps checks that test doesn't leak async ops, ie. there are no unresolved promises originating from Deno APIs. Enabled by default, can be disabled using Deno.TestDefinition.disableOpSanitizer. assertResources checks that test doesn't leak resources, ie. all resources used in test are closed. For example; if a file is opened during a test case it must be explicitly closed before test case finishes. It's most useful for asynchronous generators. Enabled by default, can be disabled using Deno.TestDefinition.disableResourceSanitizer. We've used those sanitizers in internal runtime tests and it proved very useful in surfacing incorrect tests which resulted in interference between the tests. All tests have been sanitized. Closes #4208
2020-03-10refactor: Cleanup options object parameters (#4296)Nayeem Rahman
2020-03-09test: add actual error class to fail message (#4305)Chris Knight
2020-02-24rename Deno.Err -> Deno.errors (#4093)Bartek Iwańczuk
2020-02-23fix: [ws] sock shouldn't throw eof error when failed to read frame (#4083)Yusuke Sakurai
2020-02-21refactor: remove unneeded ErrorKinds (#3936)Bartek Iwańczuk
2020-02-11update references to testing/mod.ts in manual (#3973)Bartek Iwańczuk
2020-02-11refactor: rewrite tests in std/ to use Deno.test (#3930)Bartek Iwańczuk
2020-02-07remove non-null assertion operator from std (part1) (#3900)Yusuke Sakurai
2020-01-09feat: Deno.args now does not include script (#3628)Ry Dahl
Previously Deno.args was ["script.js", "arg1", "arg2"] Now it is just ["arg1", "arg2"] BREAKING CHANGE
2020-01-02Happy new year! (#3578)Ry Dahl
2019-12-20feat: Add missing mod.ts files in std (#3509)Nayeem Rahman
std/archive/tar.ts: - Remove FileReader. - Remove FileWriter. std/encoding/csv.ts: - ExtendedParseOptions -> ParseOptions - HeaderOption -> HeaderOptions - ParseOptions -> ReadOptions - readAll() -> readMatrix() std/encoding/yaml.ts: - DumpOptions -> StringifyOptions std/fmt/colors.ts: - getEnabled() -> getColorEnabled() - setEnabled() -> setColorEnabled() std/testing/mod.ts: - Re-export sibling modules.
2019-12-18Improve empty test case error messages (#3514)Yoshiya Hinosawa
2019-11-15run std test with cargo test (#3344)Bartek Iwańczuk
Removes three CI jobs
2019-11-14fix: error handling in std/fs/walk() (#3318)Nayeem Rahman
- Make assertThrows() return the Error - Remove WalkOptions::onError()
2019-11-13Update to TypeScript 3.7 (#3275)Kitson Kelly
and update to prettier 1.19 Also, update `assert()` and remove not null assertions where possibly in `cli`. Closes #3273
2019-11-04Consolidates asserts#equal branches for keyed collections (Map/Set) and ↵James Wright
supports deep equality of Map keys (#3258)
2019-10-29Support for deep `Map` equality with `asserts#equal` (#3236)James Wright
2019-10-16std: Move fs/path to the top-level (#3100)Nayeem Rahman
2019-10-09Run deno_std tests in github actionsRyan Dahl
2019-10-09Move everything into std subdirRyan Dahl