This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| gitlab-codeception [2019/03/03 19:12] – created admin | gitlab-codeception [2019/03/03 19:43] (current) – [Gitlab Codeception] admin | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| Most important part is that the selenium server can call urls in your docker webapp container. | Most important part is that the selenium server can call urls in your docker webapp container. | ||
| - | For Details | + | For details |
| ===== Gitlab-CI config ===== | ===== Gitlab-CI config ===== | ||
| - | <code yaml> | + | <code yaml .gitlab-ci.yml> |
| stages: | stages: | ||
| - test | - test | ||
| + | # For use in multiple jobs when webserver is needed | ||
| .run_webserver: | .run_webserver: | ||
| image: composer:1 | image: composer:1 | ||
| Line 24: | Line 25: | ||
| codeception: | codeception: | ||
| - | <<: *run_webserver | + | <<: *run_webserver |
| stage: test | stage: test | ||
| services: | services: | ||
| Line 31: | Line 32: | ||
| variables: | variables: | ||
| SELENIUM_HOST: | SELENIUM_HOST: | ||
| - | dependencies: | ||
| - | - build | ||
| script: | script: | ||
| - echo $WEB_APP_IP | - echo $WEB_APP_IP | ||
| Line 48: | Line 47: | ||
| ===== Codeception config ===== | ===== Codeception config ===== | ||
| + | Nothing special here except for '' | ||
| + | |||
| + | <code yaml codeception.yml> | ||
| + | paths: | ||
| + | tests: tests | ||
| + | output: tests/ | ||
| + | data: tests/_data | ||
| + | support: tests/ | ||
| + | envs: tests/_envs | ||
| + | actor_suffix: | ||
| + | extensions: | ||
| + | enabled: | ||
| + | - Codeception\Extension\RunFailed | ||
| + | coverage: | ||
| + | enabled: true | ||
| + | include: | ||
| + | - DistributionPackages/ | ||
| + | modules: | ||
| + | enabled: [ Asserts ] | ||
| + | params: | ||
| + | - env | ||
| + | </ | ||
| ==== Api test config: ==== | ==== Api test config: ==== | ||