jasmine/index.html.md
2010-09-17 22:13:07 -07:00

1.2 KiB

layout title
default Jasmine: BDD for Javascript

BDD for your JavaScript

Jasmine is a behavior-driven development framework for testing your JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a DOM. And it has a clean, obvious syntax so that you can easily write tests.

{% highlight javascript %} describe("Jasmine", function() { it("makes testing JavaScript awesome!", function() { expect(yourCode).toBeLotsBetter(); }); }); {% endhighlight %}

Adding Jasmine to your Rails project

{% highlight sh %} $ gem install jasmine $ script/generate jasmine $ rake spec {% endhighlight %}

Jasmine can be run by on a static web page, on your Continuous Integration environment, or with node.js. See more in the documentation.

Support

Discussion: Google Group
Group email: jasmine-js@googlegroups.com
Current Build Status: Jasmine at Pivotal Labs CI
Project Backlog: Jasmine on Pivotal Tracker
Twitter: @JasmineBDD