Skip to content
Snippets Groups Projects
Verified Commit 82694ffb authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

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: default avatarBart Jaskulski <bjaskulski@protonmail.com>
parent 0ac9dfc8
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
- echo "End before" - echo "End before"
- cd ${CI_PROJECT_DIR} - cd ${CI_PROJECT_DIR}
script: script:
- vendor/bin/codecept run --steps --xml --html -f --verbose - vendor/bin/codecept run acceptance --steps --xml --html -f --verbose
after_script: after_script:
- !reference [.after-codeception, 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' - '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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment