Re:BDD For Node - Introducing vows-bdd
by snprbob86 on Tuesday August 16, 2011 @09:05PM
(#2893569)
I looked at vows and Jasmine and a few of the other RSpec-inspired libraries for Javascript/CoffeeScript. What I determined was that Javascript simply doesn't have the necessary features to properly replicate RSpec's syntax. For example, if you want to run tests against Internet Explorer, you can't use any method_missing or noSuchMethod magic.
I adapted bits and pieces of CoffeeScript's cakefile. It basically defines `function test(description, runTest)` and uses the builtin node assert module. Simple and got the job done:
I adapted bits and pieces of CoffeeScript's cakefile. It basically defines `function test(description, runTest)` and uses the builtin node assert module. Simple and got the job done:
https://github.com/jashkenas/coffee-script/blob/master/Cakef...