-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Concurrency complicates some things like creating fixtures on disk, database, services, etc. Would be nice to document best-practises for handling this.
For example, for disk fixtures the recommended best-practise is using temp files.
What kind of challenges did you have converting/creating tests to be atomic? Let's discuss.
From the gitter chat:
I have a few questions about Ava.
Firstly good idea, my tests take a while to run, and they could all be
run concurrently in a fraction of the time.
Currently I use mocha. The Ava project would run concurrent tests. But a great
number of tests that currently exist are set up to populate DBs etc with data then
perhaps an api is hit and the expected data that is received is tested against
that stuffed into the DB.
Some tests hit remote APIs. Some hit local ones. Although running things concurrently
does make things faster it also makes testing trickier. Have thoughts been given
to this?
I am quite happy to start making contributions by explaining the concurrency in the
readme.