Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BDD framework for the frontend?

On the server side we have Rspec/Cucumber for BDD development (ruby) vowsjs (node.js)

Is there a BDD frameworks to use on web browsers (not qUnit or YUI test since these are only for TDD)?

like image 722
ajsie Avatar asked Mar 04 '11 20:03

ajsie


2 Answers

Check out jasmine

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

http://pivotal.github.com/jasmine/

https://github.com/pivotal/jasmine

Should_be ( sic ) very familiar to a ruby person

like image 171
macarthy Avatar answered Oct 16 '22 23:10

macarthy


You could also look at Yadda. Rather than being a standalone test framework like CucumberJS, it enables to use a Gherkin like syntax from other frameworks like Mocha, Jasmine, CasperJS, Zombie, Qunit etc.

like image 11
cressie176 Avatar answered Oct 16 '22 23:10

cressie176