sammyt / rhumb

URL routing in js
MIT License
4 stars 4 forks source link

Better tests #11

Closed mstade closed 9 years ago

mstade commented 9 years ago

Mocha makes it tricky to work with the test output at times, particularly when wanting to do any further processing of the results. Replacing mocha with tape also had the benefit of making the tests cleaner, since both chai and sinon were removed in the process. Also less risk of false positives due to magical testing frameworks.

pemrouz commented 9 years ago

How do you run these tests in a browser?

mstade commented 9 years ago

I've been using browser-run and testling – they do pretty much the same thing which is run the tests in a browser and relay whatever console.log spits out to the terminal. It's simple running them in the browser, it's just a matter of browserify test/**/*.js | browser-run -b safari (replace -b safari with whatever browser you want to run.)