node package manager

spider-tdd

Spider TDD Micro-Framework

Spider is a tiny test-driven-development framework designed to make tests easy and quick to write for javascript applications. Spider uses a unique technique of natural language testing which provides an API which translates closely to the english language. Making it easy to read and write.

Getting Started

Spider is on Node.JS's NPM registry.

npm install spider-tdd -g

Example

var test = require('spider').test;

test('MyObject#prop', function(pass, fail, next) {
    
    pass.if(typeof arr.slice).is('function');
    pass.if(arr.slice(1,3)).like([2,3]);
    pass.if(Object.create.bind(null, 'foo')).throws(TypeError);
    
    next();
});