---
id: 2341
title: Jasmine - A JavaScript Testing Framework
slug: jasmine-a-javascript-testing-framework-2
date: '2012-05-01T17:52:31Z'
modified: '2012-05-01T17:52:31Z'
status: publish
type: post
author: pmoelgaard
categories:
  - Uncategorized
tags:
  - Frameworks
  - JavaScript
  - Testing
  - Tools
excerpt: null
canonicalPath: /posts/jasmine-a-javascript-testing-framework-2
featuredImage: null
commentCount: 0
wordCount: 188
readingTimeMinutes: 1
hasMedia: false
hasVideos: false
url: 'https://forwardthinking.pemo.me/posts/jasmine-a-javascript-testing-framework-2'
---
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](http://nodejs.org) projects, or anywhere that JavaScript can run.

Check it out...  
[https://github.com/pivotal/jasmine](https://github.com/pivotal/jasmine)

Jasmine is a [behavior-driven development](http://en.wikipedia.org/wiki/Behavior_Driven_Development) (BDD) JavaScript testing framework [Pivotal Labs](http://pivotallabs.com/) maintains it and makes it available on [GitHub](https://github.com/pivotal/jasmine) 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](http://johnbintz.github.com/jasmine-headless-webkit).

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](http://www.adobe.com/devnet/html5/articles/unit-test-javascript-applications-with-jasmine.html)
