Blog2013 ≫ Vows skeleton test generator

I'm using vows at work to test our nodejs and I keep finding myself writing the same repetitive tests when I create a new method, to test that bad input won't bring the whole system down. So I automated it1!

Now I run

node skelgen.js input-file.js > test-file.js

and my test file is created for me. I've just updated this today so that skelgen.js tests itself (and yes it does pass)

node skelgen.js input-file.js | node

More details1 (though not many more, it is very simple) on the repo1.

Node: Js (programming language of the web) on the server side.

⬅️ :: ➡️

Paul Clarke's weblog - I live in A small town. Wed to Clare and dad to two, I'm a full stack web developr, + I do js / Node, some ruby, python, php ect ect. I like pubs, parkrun, eating, home-automation + other diy stuff, history, genealogy, Television, squirrels, pirates, lego, and TIME TRAVEL.