background preloader

Vow BDD for node.js

Facebook Twitter

Vows « Asynchronous BDD for Node. Cloudhead/vows - GitHub. RESTeasy: Test any API in node.js - blog. It seems like every developer has their own (passionate) opinion about how software should be tested: "I would kill myself without BDD"ZOMG! How could you write software without TDD!?! "Testing? Meh. I try to have unit tests... " I think more developers than not fall into the mindset of the last quote; we want to test our software but we don't have the time, or resources to make 100% test coverage a reality. This excess of verbosity and difficulty was the motivation for writing APIeasy: a simple tool for writing BDD tests for any REST API. Update: So the Internet and I were talking and it turns out there is already a library called RESTeasy. APIeasy will let you test any API, not just APIs written in node.js. The following code sample creates a simple JSON-based web service using journey with a couple of simple routes: So what are the concerns that one might have when testing such an API taking into consideration the benefits of descriptive tests (read: BDD)?

Vows your-test-suite.js. Nodejitsu/kyuri - GitHub. Dscape/ensure - GitHub.