Behaviour-Driven Development Tool Jasmine 2.0 Released

| by Jan Stenberg Follow 34 Followers on Dec 22, 2013. Estimated reading time: 1 minute |

The latest version of Jasmine, a Behaviour-Driven Development, BDD, testing framework for JavaScript, comes with improved support for Node.js and work on increasing the internal quality. Changes in the recently released version 2.0 include:

  • The quality of support for Node.js is enhanced by including all tests of Node as part of the continuous integration testing of Jasmine. Integration tests also include tests against major web browsers, including Firefox, Chrome, Safari and Internet Explorer.
  • The dependency on Ruby has been dropped and replaced with Node.js and Grunt.js. This has decreased the amount of code and may simplify for the community to verify the function of contributions before they are added.
  • Work on increasing quality of Jasmine by using Jasmine for testing itself.

Some changes have broken the backwards compatibility with previous versions, among others:

  • The syntax for asynchronous tests has changed, a call-back function can now be provided.
  • The interface for reporters has been replaced; this has resulted in changes in how call-backs are used and a decrease in coupling between custom implementations and Jasmine.
  • The code for equality checks has been replaced which may cause a different behaviour.

In addition to these changes, a number of issues and bugs have been fixed. The biggest set of changes though comes from refactoring in almost all objects in the code base, using a more consistent coding style with the goals of improving tests and simplifying development for the core team as well as for the community when extending Jasmine.
The team have also updated the introduction to Jasmine, highlighting the changes for 2.0.

Jasmine is a framework for behaviour-driven development testing of JavaScript code, not depending on any other JavaScript frameworks or a Document Object Model, DOM.
A mailing list for Jasmine users is available with more than 800 members and so far almost 600 topics. A book about JavaScript testing using Jasmine was published earlier this year.

Jasmine, founded by Davis W. Frank and currently maintained by three developers, is an open source product, licensed under the MIT License.

Rate this Article

Adoption Stage

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread


Login to InfoQ to interact with what matters most to you.

Recover your password...


Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.


More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.


Stay up-to-date

Set up your notifications and don't miss out on content that matters to you