Uncategorized

Jasmine – A JavaScript Testing Framework

Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it’s suited for websites, Node.js projects, or anywhere that JavaScript can run.

Check it out…
https://github.com/pivotal/jasmine

Jasmine is a behavior-driven development (BDD) JavaScript testing framework Pivotal Labs maintains it and makes it available on GitHub under the MIT license. Jasmine allows tests to be written independent of the DOM or other JavaScript frameworks. You run Jasmine in a browser, or headless without a browser by integrating with other frameworks such as Rhino, Envy, or the Jasmine-headless-webkit library.

Jasmine API includes features such as:

  • A more natural BDD syntax for organizing the test logic than JUnit style assertion test frameworks
  • Asynchronous testing
  • Mocks
  • Spies
  • Easy to create custom matchers
  • Ability to share or isolate behaviors between tests within a spec encapsulating parts of your spec.
  • Continuous integration support

If this has caught your interest, I recommend that you check out this article on the Adobe Developer Network about how to get started using Jasmine to test your Javascript applications…
http://www.adobe.com/devnet/html5/articles/unit-test-javascript-applications-with-jasmine.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s