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
suites
andfuntionalSuites
config 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
async
function may now be called in suite lifecycle methods asthis.async([timeout])
. Like theasync
method in tests, it can be used to set a timeout for the async operations, and it returns an augmented Deferred object withcallback
andrejectOnError
methods. (#289) - Fail fast support -- When the
bail
config 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
skip
method 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_modules
rather 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