Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support parallel tests #33

Closed
marcos8896 opened this issue Sep 7, 2018 · 0 comments
Closed

Support parallel tests #33

marcos8896 opened this issue Sep 7, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request feature

Comments

@marcos8896
Copy link
Owner

In order to support parallel integration test without collisions between them, it will be required to add multiple databases and ports for testing porpuses and maybe a fix maxWorkers for Jest.

Currently, all the test are running synchronously with maxWorkers=1, because of the same problem with collisions between database calls and ports.

A good fixed value for maxWorkers would be "4", but it will require some extra work to properly do it.

A good place to start would be this issue, in which it is mentioned that for this kind of cases it will be possible to do something like this:

const port = 3000 + process.env.JEST_WORKER_ID
@marcos8896 marcos8896 added enhancement New feature or request feature labels Sep 7, 2018
marcos8896 added a commit that referenced this issue Sep 7, 2018
It is required to set multiple ports and databases in order to
support the parallel worker feature.

Related issue:
#33
marcos8896 added a commit that referenced this issue Sep 7, 2018
Allow to find available ports.
marcos8896 added a commit that referenced this issue Sep 7, 2018
It was returning the wrong value
marcos8896 added a commit that referenced this issue Sep 7, 2018
The package did not solve the problem with ports collision.
marcos8896 added a commit that referenced this issue Sep 7, 2018
Abstract away the setup complexity needed to configure the testing
environment.
marcos8896 added a commit that referenced this issue Sep 7, 2018
Allow to remove the complexity to setup the integration test
environment
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request feature
Projects
None yet
Development

No branches or pull requests

2 participants