question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reopening 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:closed
  • Created 7 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
levithomasoncommented, Apr 19, 2016

thanks for the bump, will put some time to this tonight.

0reactions
levithomasoncommented, Apr 20, 2016

PR up #31

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found