New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate form Tape to Tap (Run Tests in PARALLEL!) ? #34
Comments
One of the most useful/important features that in a recent example I've been working on: https://github.com/dwyl/learn-elm-architecture-in-javascript elmish.empty(document.getElementById(id));
localStorage.removeItem('todos-elmish_' + id); Simply moving to |
Perhaps the best "feature" of |
I'm applying a |
In the end I decided to simply extend the |
Why?
It recently came to our attention in: dwyl/aws-sdk-mock#144
that
tap
has a couple of really useful features thattape
(our current test runner) does not.We use
tape
virtually everywhere in our Node.js projects (hence this tutorial)And in general it works really well for us.
e.g: https://travis-ci.org/dwyl/hapi-auth-jwt2/jobs/376314561
The
npm test
stage take "only" 5.25 seconds to complete,which means is't never been a "problem" for us ...
However on bigger Node.js project(s) with many tests e.g: https://github.com/TheScienceMuseum/collectionsonline
https://travis-ci.org/TheScienceMuseum/collectionsonline/builds/409777564#L576
There could be a pretty significant benefit to running tests in Parallel.
What?
t.spawn
to run a particularly slow test in a new process: https://www.node-tap.org/advancedHow?
The steps are pretty simple as outlined in:
https://github.com/dwyl/aws-sdk-mock/pull/144/files#diff-0fd0e07cf6d02bf7cf00f18cebb8e6eaR1
We could also include a mini-guide at the end for "how to migrate from Tape to Tap" based on our experience of doing it for a sample project
e.g: https://www.npmjs.com/package/hapi-auth-jwt2 or https://www.npmjs.com/package/decache
both of which can use a
devDependencies
update ... 🙄Todo:
The text was updated successfully, but these errors were encountered: