Skip to content
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

find a way to run integration tests sequentially #31

Open
isaaccormack opened this issue Jun 20, 2020 · 0 comments
Open

find a way to run integration tests sequentially #31

isaaccormack opened this issue Jun 20, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@isaaccormack
Copy link
Owner

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.

@isaaccormack isaaccormack added the bug Something isn't working label Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant