This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
gitlab-codeception [2019/03/03 19:27] – 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 | ||
Line 32: | Line 32: | ||
variables: | variables: | ||
SELENIUM_HOST: | SELENIUM_HOST: | ||
- | dependencies: | ||
- | - build | ||
script: | script: | ||
- echo $WEB_APP_IP | - echo $WEB_APP_IP | ||
Line 49: | 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: ==== | ||