Skip to content

3.1.0

Compare
Choose a tag to compare
@jason0x43 jason0x43 released this 01 Apr 20:15
· 792 commits to master since this release

Release Overview

This release includes a number of new features and dependency updates, as well as an update to improve how Intern works with npm.

Thanks to @alekstorm, @Arnavion, @bartoszkaczorek, @jacobroufa, @jrgm, @JSMike, @kitsonk, @LingSpb, @rodneyrehm, and @sholladay for their contributions.

Special thanks to @sholladay and Ai Squared for sponsoring the new features in this release!


New features

  • Suite globbing -- The suites and funtionalSuites config properties may now contain glob expressions, such as tests/unit/foo/*. This feature works in both node and browser environments. When globs are used in a browser, tests must be served by the Intern proxy. (#359)
  • Improved async support for Suite -- An async function may now be called in suite lifecycle methods as this.async([timeout]). Like the async method in tests, it can be used to set a timeout for the async operations, and it returns an augmented Deferred object with callback and rejectOnError methods. (#289)
  • Fail fast support -- When the bail config option to true, Intern will skip all remaining tests after a failed test. This applies to both unit and functional suites. (#413)
  • Suite skipping -- Suites now have a skip method that works like the existing Test#skip. Calling it from a Suite lifecycle method, or from within a test (as this.parent.skip([reason])) will cause all remaining tests in the suite, and any sub suites, to be skipped. (#386)

Enhancements

  • Update Dig Dug dependency to 1.4.0
  • Update Leadfoot dependency to 1.6.6. This version improves compatibility with WebDriver servers that use traditionally-cased headers or use redirection when establishing a session.
  • Update dojo dependency to 2.0.0-alpha.7. This improves compatibility with IE 9.
  • Updated chai dependency to 3.5.0
  • Intern's AMD dependencies that need to be browser-accessible are now linked into browser_modules rather than node_modules. This lets Intern work with npm shrinkwrap, and prevents warnings about extraneous packages during npm install . (#586)

Bug fixes

  • Schema-less baseUrl's are now properly handled. (e.g., '//localhost')

Documentation updates


Install from npm

cd /my/project/root
npm install intern --save-dev

Download source