3 ms·
I used to use Karma / Mocha... Now I advocate that people use Tape. There's a great article [0] about tape, which I'd suggest giving a read! If you want to ru
by TheAceOfHearts 11y ago
I used to use Karma / Mocha... Now I advocate that people use Tape.
There's a great article [0] about tape, which I'd suggest giving a read!
If you want to run your tests on all the browsers, you can use zuul [1], which is also dead simple to use!
[0] https://medium.com/javascript-scene/why-i-use-tape-instead-of-mocha-so-should-you-6aa105d8eaf4 https://medium.com/javascript-scene/why-i-use-tape-instead-o...
[1] https://github.com/defunctzombie/zuul https://github.com/defunctzombie/zuul
- auvrw 11y agotape is a good pick, thanks! i've been using mocha, just b/c it's the most popular, and tho it's not bad, i dislike that even in programmatic[.] usage, one generally doesn't import tests as a "module" object. somehow it just doesn't jibe w/ notions of code reuse, even if it hasn't become much of a problem in practice. anyway, i got curious about how to do this, started reading the source, and at a cursory glance, it looked like reading in tests as files was baked in pretty deep. [.]https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically https://github.com/mochajs/mocha/wiki/Using-mocha-programmat...