Closed mstade closed 9 years ago
How do you run these tests in a browser?
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.)
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.