Minimal Testing
It's always been a pain to type a lot to get something done, and when it comes to unit testing(very boring stuff IMO :P) it is even more painful when you cant get it done with typing as little as possible.
It is quite normal that the syntax would look like this
var test = ; ;
in this, it would look like this
var scnario = ; "abc" { ; } "abc2" { ; }
You can run it by just executing it like any other nodejs files
node unit_test/test.js
Usage
npm install minimal-test
var scenario = ;var path = ; "Lets test if 1 is a number" { testisa; } "Lets test if 'a' is a number" { testisa; }
Output
Scenario: Lets just test some simple things
Lets test if 1 is a number passed
Lets test if 'a' is a number failed
Lets test if a file exists? this is async passed
Helpers
There are a bunch of helpers that comes along with the test object that is passed on to the testcase functions, check out the helper doc
Note
Currently due to the way npm includes dependencies, this has to be installed locally(or linked) if not it will not resolve require properly.