Skip to content

Releases: qunitjs/qunit

2.8.0

02 Nov 16:21
Compare
Choose a tag to compare

Added

  • Core: Add support for async functions and Promise-returns to QUnit event handlers. These can now be used via QUnit.begin, QUnit.moduleStart, QUnit.testStart, QUnit.testDone, QUnit.moduleDone, and QUnit.done. (Stephen Yeung) #1307
  • Core: Add stack trace to uncaught error if the browser supports it. (Anand Thakker)

Changed

  • HTML Reporter: Add a running class to list items, for use by plugins. This was previously removed in 2.7.0. #1323

2.7.1

17 Oct 17:02
Compare
Choose a tag to compare

Fixed

  • Core: Avoid breaking tests if the browser throws an error from performance.measure. (Gabriel Csapo)

2.7.0

10 Oct 15:48
Compare
Choose a tag to compare

Added

  • HTML Reporter: Add "User Timings" for each test to the browser's Performance Timeline. (Tobias Bieniek) #1296

Fixed

  • CLI: Remove need for fsevents extension by upgrading the sane package. (Stefan Penner) #1314
  • HTML Reporter: Fix XHTML output issue. (Shlomi Fish) #1317

2.6.2

19 Aug 20:02
Compare
Choose a tag to compare
  • Build: Bump packages identified by npm audit
  • Build: Remove Browserstack
  • Build: Upgrade grunt-coveralls to 2.0.0 (#1305)
  • CLI: [fixes #121] chokidar -> sane (#1283)
  • Tests: fix HTTP 404 error for the Qunit CSS in one of the test files (#1297)
  • pushResult() doesn't ever return a value: it's always undefined/void.
  • Update fsevents subdependency for Node 10 compat
  • Core: Extract QUnit.module to its own file
  • Docs: Fix Jekyll build (remove conflicting file/dir names)
  • Docs: Set up redirects for old urls
  • Docs: Fix broken QUnit.stop link from assert/async and add redirect (#1291)
  • Build: Stop testing on Node 4 & 9
  • Docs: Remove unused config and group settings

2.6.1

16 May 02:46
Compare
Choose a tag to compare
  • Test: Prevent global.QUnit leakage between node and browser tests.
  • Core: Ensure test callbacks and module hooks are released.
  • Test: Failing test with memory leak via retained hooks/callbacks.
  • Test: Add Node 10 testing to CI.
  • HTML Reporter: Disable autocomplete on module search input (#1277)
  • All: Enable ESLint recommended rules

2.6.0

27 Mar 02:26
Compare
Choose a tag to compare
  • Core: Ensure late-add high-priority tests are inserted in proper order
  • CLI: Implement --require option
  • Test: Refactor startError test to not reload QUnit
  • Core: Throw error if no tests are run
  • Assert: Support rejecting falsy values against no matcher in rejects
  • Assert: Clone actual steps array to avoid passing internal reference
  • Test: Add failing test for verifySteps passing reference to log
  • Docs: Note that non-string values fail assert.step()
  • Assert: Fail test when passing a non string value to assert.step
  • Core: Extract currently running test out of config.queue into internal testQueue (#1260)

2.5.1

28 Feb 01:49
Compare
Choose a tag to compare
  • Docs: Align assert.throws() and assert.rejects() docs (#1265)
  • Build: Use Node 9.x for matrix, cache node_modules
  • Docs: Remove unexpected throw statement in examples
  • Docs: Note that assert.rejects() also accepts an error object as matcher
  • Docs: Mark the second parameter of assert.rejects() as optional
  • Docs: Remove redundant expression from verifySteps' description (#1262)
  • Docs: Fix typo in docs for QUnit.module (#1257)
  • Core: Release all processing locks when Promise rejects from a test
  • Assert: Fail test when using step inside a test without verifySteps
  • HTML Reporter: Ensure attributes on qunit-fixture are reset.
  • Test: Add failing test for fixture attribute leakage.
  • Tests: refactor fixture reset tests to be more strict

2.5.0

10 Jan 03:07
Compare
Choose a tag to compare
  • Core: Capture the proper stack trace in onUnhandledRejection.
  • Core: Remove delay parameters from setTimeouts in processing code (#1246)
  • Core: Add QUnit.onUnhandledRejection.
  • CLI: Ensure an unhandled rejection results in a failed test.
  • Assert: Add assert.rejects.
  • Assert: Reset internal steps list after verifySteps
  • HTML Reporter: Ensure unhandled rejection fails.
  • Docs: Add example for async test with assert.timeout
  • Docs: Add assert.rejects API documentation.
  • Docs: assert.verifySteps() called multiple times.
  • Tests: Fix no-multi-spaces violation found by latest ESLint
  • Tests: Address feedback, use more idiomatic promise chaining.
  • Tests: Update CLI test and test fixture to remove stacktrace ambiguity.
  • Tests: Update tests for unhandled rejection scenarios.
  • Tests: Add test for notrycatch doesn't catch.
  • Tests: Reject async test promise when config.notrycatch is set.
  • Tests: Add Node 9 to test matrix.
  • Tests: Drop Node 7 from CI.
  • Build: Use babel-preset-env and .babelrc
  • All: Enable ESLint no-multi-spaces rule (#1234)
  • All: Fixes spelling of 'occurred'

2.4.1

22 Oct 05:23
Compare
Choose a tag to compare
  • HTML Reporter: Fix regression in error reporting
  • Docs: Add further clarification and examples for Step API
  • Build: Add my new name to .mailmap, update it in AUTHORS.txt
  • CLI: Add slight debounce to restarting tests on file watching
  • CLI: Properly support watching files added after first run
  • Tests: Add watch test for adding file after a run
  • CLI: Clear require cache of watched files between runs
  • Tests: Modify watch test to cover require cache scenario
  • Build: Allow custom livereload port via livereload-port option
  • Build: Add better livereloading to watch task
  • Build: Fix test-on-node task during watch
  • CLI: Catch file load failures and report as failing tests
  • Test: Fixing double-space that was expanded to tab
  • All: Updated yarn.lock
  • All: Upgraded to eslint@4.x via grunt-eslint@20.x and related plugins
  • CLI: List available reporters when option is specified with no value
  • Test: Provide descriptive feedback when missing test callback

2.4.0

08 Jul 15:35
Compare
Choose a tag to compare
  • Assert: Introduce timeout to set per-test timeout durations
  • Assert: Fix assert.push deprecation link
  • Core: Release objects from memory in equiv
  • Core: Implement QUnit.module.skip()
  • Core: Fallback to typeof obj in QUnit.objectType
  • Core: Implement QUnit.module.todo()
  • Core: Implement QUnit.module.only()
  • Core: Add support for multiple hooks
  • CLI: Better messaging on early exits
  • CLI: Default to non-zero exit code
  • CLI: Exit with non-zero status when no tests are run
  • Docs: Document assert.timeout
  • Docs: Fix typo in docs for QUnit.module
  • Docs: Document QUnit.module.{only,skip,todo} (#1194)
  • Docs: Add note about defining multiple hooks for modules
  • Tests: Add tests for QUnit.module.todo()
  • Tests: Add tests for QUnit.module.skip()
  • Tests: Add tests for assert.timeout
  • Tests: Add tests using native async functions
  • Tests: Add tests for multiple module hooks
  • Tests: Add tests for QUnit.module.only()
  • Build: Disable max-len ESLint rule for tests
  • Build: Register events after requiring test file in test-on-node task
  • Build: Include bin file in eslint