Page MenuHomePhabricator

MPIC: Automate integration tests
Closed, ResolvedPublic8 Estimated Story Points

Description

Description

At this point we have already unit tests. They can be run automatically within the GitLab CI pipeline every time we push/merge any change/MR which is great.

According to T368612: MPIC: Frontend web testing, we are going to have web testing as well and it seems they will run automatically within the pipeline same way as the unit ones.

We also have some integration tests, but these ones need a database in the environment where they run. That's why, at this moment, we have to run it manually on our local system before pushing any change to the repository. But there is a GitLab feature called services that would allow us to dockerize a database container to use it when running our integration test cases in the GitLab pipeline (https://docs.gitlab.com/ee/ci/services/). That way we could fully automate testing for MPIC.

We have a pending meeting with QTE which could be a good opportunity to ask for support about this.

Acceptance criteria

  • Explore if we can create a database service in the GitLab pipeline to use it when running the integration test cases
  • Configure the pipeline to run both unit and integration tests cases (and web testing if available)
  • Is there something else to do to automate testing for MPIC?

Event Timeline

Sfaci renamed this task from MPIC: Testing automation to MPIC: Automate integration tests.Aug 6 2024, 6:15 PM
Sfaci set the point value for this task to 3.
cjming changed the point value for this task from 3 to 5.Aug 20 2024, 3:20 PM
cjming changed the point value for this task from 5 to 8.
Nemoralis removed Due Date which was set to Sep 28 2024, 10:00 PM.Oct 6 2024, 12:30 PM

MR has been merged to main. Going forward more tickets will be created to add more test scenarios to the framework