isaaccormack / Tabber

Automatically tab guitar licks played into your computer's microphone
https://tabber.ca
1 stars 1 forks source link

find a way to run integration tests sequentially #31

Open isaaccormack opened 4 years ago

isaaccormack commented 4 years ago

integration tests cant be run in parallel as concurrent database access / initialization between tests is causing errors

currently I put in a hacky workaround:

"integration-jest": "tsc && jest --coverage dist/test/integration/index.spec.js && jest --coverage dist/test/integration/lick.spec.js && jest --coverage dist/test/integration/user.spec.js",

which explicitly runs each integration test, but this comes at the cost of losing overall code coverage metrics for integration tests. In addition, integration tests and unit tests must be run separately.

It would be nice to figure this out, tried a couple common ways but couldn't find a way which worked.