unicef / iogt

BSD 2-Clause "Simplified" License
25 stars 35 forks source link

Allow unit and selenium tests to run in parallel #1611

Closed istride closed 1 year ago

istride commented 1 year ago

This PR allows test to be run in several processes at the same time, which substantially reduces the amount of time required to run a full test suite - especially Selenium tests.

Several improvements were required to make this possible:

Even if the tests are not run in parallel, the Selenium tests should be more stable now due to the use of PostgreSQL - tests were failing randomly due to not being able to flush the SQLite database.

istride commented 1 year ago

Parallelism is not active for Selenium tests running in Github Actions because the standard runner only has two CPU cores available to it and the Selenium tests already require about 5 different processes to run just so that the tests can be run sequentially.