improvement on Acceptance Tests

vaisakhpc
vaisakhpc Posts: 3 🧑🏻‍🚀 - Cadet

Hello Spryker community,I'm working on acceptance tests for a Spryker project and I'm looking for ways to optimize the test setup and iteration process. Currently, we need to run the following commands before each test run:

docker/sdk boot deploy.ci.acceptance.mariadb.yml -v &&
docker/sdk up -t -v &&
docker/sdk testing codecept fixtures &&
docker/sdk testing console queue:worker:start --stop-when-empty &&
docker/sdk cli composer dump-autoload -o -a --apcu

Followed by:

docker/sdk testing codecept run

or

docker/sdk testing codecept run -c codeception.acceptance.yml

The initial setup commands are time-consuming as they involve starting the Docker environment and preparing the test fixtures. This becomes especially problematic when we need to make changes to a test and rerun it, as we have to go through the entire setup process again.My questions are:

  1. Are there any ways to update test code or other related code without having to rerun the entire block of setup commands?
  2. Can we optimize this process to reduce the time spent on each test iteration?
  3. Are there any best practices or tools within the Spryker ecosystem to make this process more efficient?

Any insights or suggestions would be greatly appreciated. Thank you!