Skip to content

1.1.0

Choose a tag to compare

@csnover csnover released this 30 Jul 18:57
· 1250 commits to master since this release

Release overview

  • Improved integration with Grunt
  • Support installation via npm
  • Better support for non-AMD code testing

Important, backwards-incompatible changes

  • The installation method has changed from using git clone to using npm install.

    This means that Intern will now be installed inside node_modules instead of directly within the current directory. As a result, the default base URL for the loader is now down two levels, instead of down one level.

    This also means that Dojo is now installed as a dependency within intern/node_modules, so if you had previously been referring to intern/dojo, you will now either need to add a map to your loader configuration like '*': { 'intern/dojo': 'intern/node_modules/dojo' } or you will need to update references to add node_modules.

    See the running tests documentation to see how to use Intern from within node_modules (hint: basically the same as before). Older installations of Intern will need to be reinstalled, but no changes to tests should be required. (#10, #16, #45)

  • Grunt support has been changed to use grunt.loadNpmTasks. (#22)

Enhancements

  • client.js will now exit with a non-zero status code if a test fails. (#11)
  • Sauce Labs credentials will now be pulled from the environment when using Grunt if they are not provided explicitly, just as they would be when using runner.js directly. (#15)
  • A basic intern/order! plugin for loading non-AMD browser code has been added to facilitate testing legacy browser JavaScript. (#30)

Bug fixes

  • Errors when loading test dependencies are now reported instead of causing a silent failure. (This would typically manifest itself as Intern starting, saying "Defaulting to "console" reporter", and then exiting.) (#48)
  • Attempting to run the test runner via Grunt on Mac OS X using Sauce Connect without having already downloaded the Sauce Connect JAR will no longer crash. (#23)
  • (geezer) The ES3 Chai API-compatible assertion library has been updated to fix edge cases in old IE that were not represented in the Chai test suite. (#27, #28)

Install from npm

Regular edition
cd /my/project/root
npm install [email protected] --save-dev
or Geezer edition
cd /my/project/root
npm install git+https://github.com/theintern/intern.git#1.1.0-geezer --save-dev

Download source