scrom / Experiments

a NodeJS text adventure - deliberately coded badly to re-experience the pain of legacy code
http://mvta.herokuapp.com/
2 stars 0 forks source link

Migrate tests from nodeunit to mocha #392

Closed scrom closed 8 years ago

scrom commented 8 years ago

This makes me sad as nodeunit on VS2013 supports test traits. I've not found a better way to do this in Mocha but VSNode and VS2015 don't support nodeunit test runner. :(

scrom commented 8 years ago

First few (map) tests written and passing.

scrom commented 8 years ago

I decided I don't really like mocha and prefer the extra things I get from Nodeunit so I forked the original nodeunit plugin author's repo and fixed it up for the latest node tools and VS2015. Rather fortunately it runs alongside the VS tools unit test runner with no issues - so I can now do both.

(there's a pull request back to the original author for the nodeunit tools in case it's worth keeping alive but after not being touched for 2 years and no responses on logged bugs it seems unlikely that it's under active maintenance