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 it!

Now I run

[node](/wiki/#nodejs) skelgen.[js](/wiki/#javascript) input-file.[js](/wiki/#javascript) > test-file.[js](/wiki/#javascript)

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](/wiki/#nodejs) skelgen.[js](/wiki/#javascript) input-file.[js](/wiki/#javascript) | [node](/wiki/#nodejs)

More details (though not many more, it is very simple) on the repo.

nodejs: Js (programming language of the internets) on the server side.

js: Programming language of the internets, mostly how I make my living.

⬅️ :: ➡️

Paul Clarkeʼs blog - I live in Hythe, Kent. Wed to Clare and dad to two, I am a full-stack web developr, + I do js / Node, some ruby, other languages ect ect. I like pubbing, parkrun, eating, home automation and other diy stuff, history, family tree stuff, Television, squirrels, pirates, lego, and time travel.