Wednesday, 15 February 2012

Behavior-driven development framework for testing your JavaScript code



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.
describe("Jasmine", function() {   it("makes testing JavaScript awesome!", function() {     expect(yourCode).toBeLotsBetter();   }); });
Jasmine can be run anywhere you can execute JavaScript: a static web page, your continuous integration environment, or server-side environments like Node.js .
Find out more in the documentation .


ttp://pivotal.github.com/jasmine/

No comments:

Post a Comment