summaryrefslogtreecommitdiff
path: root/std/testing
AgeCommit message (Collapse)Author
2020-08-28fix(std/testing): invalid dates assertion equality (#7230)Christian Petersen
2020-08-27feat(std/testing): add assertNotMatch (#6775)xcatliu
2020-08-26test(std/testing): reduce bench test iterations to 1e3 (#7200)Casper Beyer
2020-08-24feat: update to TypeScript 4.0 (#6514)Kitson Kelly
2020-08-20fix(std/node): misnamed assert exports (#7123)Schwarzkopf Balázs
2020-07-14Use dprint for internal formatting (#6682)David Sherret
2020-07-14fix(std/testing): assertThrows inheritance (#6623)Rob Waller
2020-07-11feat(Deno.inspect): Add sorted, trailingComma, compact and iterableLimit to ↵Nayeem Rahman
InspectOptions (#6591)
2020-07-05fix(std/tesing/asserts): assertEquals/NotEquals should use milliseconds in ↵uki00a
Date (#6644)
2020-07-02improve(std/asserts): allow assert functions to specify type parameter (#6413)WJH
2020-07-01upgrade: swc_ecma_visit, dprint, deno_lint (#6580)Bartek Iwańczuk
2020-06-25refactor(std/testing): Remove unuseful statement (#6486)Yasser A.Idrissi
2020-06-24fix(std/testing) assertArrayContains should work with any array-like (#6402)Casper Beyer
2020-06-23fix(std/testing): assertThrows gracefully fails if non-Error thrown (#6330)Rob Waller
2020-06-16Update assertions names in std/testing README (#6318)Vladimir Iakovlev
2020-06-13Fix assertEqual so that it handles URL objects (#6278)Joel Chippindale
2020-06-12refactor: Don't destructure the Deno namespace (#6268)Nayeem Rahman
2020-06-09fix(std/testing/bench): Make progress callback async (#6175)Szalay Kristóf
2020-06-05Rename abbreviated assertions in std/testing (#6118)Casper Beyer
2020-06-04feat(std/testing): Allow non-void promises in assertThrowsAsync (#6052)Jon Short
2020-06-03refactor(std/testing/bench): Remove differentiating on runs count (#6084)Szalay Kristóf
2020-06-03fix(std/testing/bench): clock assertions without --allow-hrtime (#6069)Szalay Kristóf
2020-06-03docs: benchmarking (#6075)Szalay Kristóf
2020-06-02fix(std/testing/asserts): Format values in assertArrayContains() (#6060)Nayeem Rahman
2020-06-02feat(std/testing): benching progress callback (#5941)Szalay Kristóf
2020-05-29Return results in benchmark promise (#5842)Szalay Kristóf
2020-05-25fix(std/testing/asserts): Support browsers (#5847)Nayeem Rahman
2020-05-19Provide better ANSI colorized output when inspecting objects (#5404)Speykious
2020-05-15fix(std/testing): Provide message and diff for assertStrictEq (#5417)Stéphane Klein
closes #5416
2020-04-28BREAKING: Remove Deno.EOF, use null instead (#4953)Nayeem Rahman
2020-04-28BREAKING: remove overload of Deno.test() (#4951)Bartek Iwańczuk
This commit removes overload of Deno.test() that accepted named function.
2020-04-15Remove std/testing/format.ts (#4749)Nayeem Rahman
2020-04-10fix(std/testing/asserts): change left/right to actual/expected (#4697)Chris Knight
2020-04-06remove std/testing/runner.ts (#4649)Bartek Iwańczuk
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