From 82694ffbff30825822382cbdbfe6bf56d4ed2168 Mon Sep 17 00:00:00 2001 From: Bart Jaskulski <bjaskulski@protonmail.com> Date: Fri, 26 Jul 2024 16:21:33 +0200 Subject: [PATCH] fix: run only acceptance tests in a job When executing job for codeception tests, it should use only tests qualified as acceptance. Other types of tests, which may require different environment setup, should be delegated to own jobs, like it is in case of integration tests running with codeception. Signed-off-by: Bart Jaskulski <bjaskulski@protonmail.com> --- includes/tests/codeception.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/tests/codeception.yml b/includes/tests/codeception.yml index 57edb07..522f5a2 100644 --- a/includes/tests/codeception.yml +++ b/includes/tests/codeception.yml @@ -77,7 +77,7 @@ - echo "End before" - cd ${CI_PROJECT_DIR} script: - - vendor/bin/codecept run --steps --xml --html -f --verbose + - vendor/bin/codecept run acceptance --steps --xml --html -f --verbose after_script: - !reference [.after-codeception, after_script] - 'if [[ ${REPORTPORTAL_AUTHORIZATION} && ${REPORTPORTAL_PROJECT} ]]; then curl -X POST "http://195.201.225.204:8080/api/v1/${REPORTPORTAL_PROJECT}/launch/import" -H "accept: */*" -H "Content-Type: multipart/form-data" -H "${REPORTPORTAL_AUTHORIZATION}" -F "file=@tests/codeception/tests/_output/report.xml;type=text/xml;filename=${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}-codeception.xml"; fi' -- GitLab