I'm using vows at work to test our nodejs 1 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) 1 skelgen.[js](/wiki/#javascript) 2 input-file.[js](/wiki/#javascript) 2 > test-file.[js](/wiki/#javascript) 2and my test file is created for me. I've just updated this today so that skelgen.js 2 tests itself (and yes it does pass)
[node](/wiki/#nodejs) 1 skelgen.[js](/wiki/#javascript) 2 input-file.[js](/wiki/#javascript) 2 | [node](/wiki/#nodejs) 1More details (though not many more, it is very simple) on the repo.
Paulʼs weblog - I live in Hythe near Folkestone, Kent. Wed + father to two, I'm a full stack web engineer, + I do js / node, some ruby, other languages etc. I like pubbing, parkrun, eating, home-automation and other diy stuff, history, tree stuff, telly, squirrels, pirates ☠️, lego, + TIME TRAVEL.