dev-launchers / strapiv4

GNU General Public License v3.0
7 stars 2 forks source link

[DevEx] Improve Code Coverage #187

Open becevka opened 3 months ago

becevka commented 3 months ago

Summary We need to improve overall code coverage and stability

Describe the solution you'd like We have integrated Playwright in our code, and removed existing Postman based-tests, now we need to improve coverage to achieve at least 80% of line rate.

Acceptance criteria

chungthuang commented 1 month ago

To support the Dev Recruit team, we should test the APIs for the Applicant and Opportunity collections. The typical flow is a team lead will create an opportunity for a project. Then people will apply for the opportunity. When the role is filled, the opportunity will be unpublished, but not deleted so it can be reused in the future. To test this, we first need to make sure there is a project because an opportunity references a project. Then we need to test create, get, list and update opportunity APIs. Finally, we need to test create and get applicants.