3.1.0
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
suitesandfuntionalSuitesconfig properties may now contain glob expressions, such astests/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
asyncfunction may now be called in suite lifecycle methods asthis.async([timeout]). Like theasyncmethod in tests, it can be used to set a timeout for the async operations, and it returns an augmented Deferred object withcallbackandrejectOnErrormethods. (#289) - Fail fast support -- When the
bailconfig option totrue, 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
skipmethod that works like the existingTest#skip. Calling it from a Suite lifecycle method, or from within a test (asthis.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_modulesrather thannode_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