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ʼs weblog - I live in A sleepy town, Kent. Married + dad to two, I am a full stack web developr, and I do javascript / node, some ruby, other languages etc. My hobbies are pubbing, parkrun, restaurants, home automation + other diy stuff, history, tree stuff, telly 📺, squirrels, pirates ☠️, lego, and TIME TRAVEL.