Switch to Mocha
See original GitHub issueReopening this, since it looks like one of our other issues got closed. I looked into test frameworks a bit more.
- ava seems awesome, but I’m concerned with its concurrent nature. I’d imagine our tests involve modifying state on disk, so concurrently running tests each modifying disk state could be a big issue. If ava has a good workaround for this (other than the
.serial
method for every test case, which sounds like a pain), feel free to correct me. - mocha is pretty popular, and runs things concurrently. That’s a bit slower than ava since it’s not in parallel, but should be more than fast enough.
- rocha seems pretty promising. This is a wrapper on top of mocha (so it’s still running tests concurrently), but it runs them in a random order (this makes sure we don’t have a dependency between different test cases). If we get a random order that fails, rocha will keep that order until we get the tests to pass (so it’s still easy to debug issues). If we’re starting from scratch, it should be easy to write tests that don’t depend on order.
I don’t care too much which framework we use, as long as it works and ties into coverage tools. I’m mostly posting this as a reminder that we need some sort of unit tests.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
[YIHO]:Mocha Brown - SWITCH
{ [YIHO]:Mocha Brown }. Head Size 21.3cm(about 8.7inch). Eye size 16mm. Compatible body type HD 65boy body / HD 65boy Attractive body /...
Read more >Should I switch from Vows to Mocha? - Stack Overflow
I'm trying to decide whether to switch from Vows to Mocha for a large Node app. I've enjoyed almost all of the Vows...
Read more >lutron mocha stone - Amazon.com
Lutron Maestro Dimmer Switch with Companion Dimmer, 600-Watt Incandescent, Single-Pole/3-Way, MSC-1000M-MS, Mocha Stone · 4.6 out of 5 stars 55.
Read more >SinkTop Switch™ 1-3/4 in. Air Switch in Mocha Bronze
Air Switch in Mocha Bronze. Part #ISTCMB | Item #3421077 | Manufacturer Part #73274D. InSinkErator® SinkTop Switch™ 1-3/4 in. Air Switch in Mocha....
Read more >Coffee Switch Mocha 25 serves - Keto Direct
COFFEE SWITCH™ uses carefully selected Colombian Single Origin Arabica Coffee Beans for that premium coffee taste. To help support your fun feels we've...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
thanks for the bump, will put some time to this tonight.
PR up #31