medic / cht-core

The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
466 stars 218 forks source link

Refine npm run scripts for local e2e tests #8384

Open dianabarsan opened 1 year ago

dianabarsan commented 1 year ago

Describe the issue Running e2e tests requires building webapp and building images for every service, then generating the docker-compose files that start containers using these freshly build images to finally run tests.

Often times, when running tests locally, the images don't need to change, and it's the e2e test itself that is reiterated and changed.

Describe the improvement you'd like Add commands that will run e2e tests locally reusing existent service images and docker-compose files.

fardarter commented 1 year ago

It should be possible to cache builds if we hash the relevant files on build?