BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Behaviour-Driven Development Tool Jasmine 2.0 Released

Behaviour-Driven Development Tool Jasmine 2.0 Released

This item in japanese

Bookmarks

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
Style

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.

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

Community comments

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

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

BT