User Tools

Site Tools


gitlab-codeception

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
gitlab-codeception [2019/03/03 19:12] – created admingitlab-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 see https://cappers.ca/web-application-acceptance-tests-in-gitlab-ci-using-codeception-and-selenium/+For details see https://cappers.ca/web-application-acceptance-tests-in-gitlab-ci-using-codeception-and-selenium/
  
 ===== 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 .run_webserver: &run_webserver
     image: composer:1     image: composer:1
Line 24: Line 25:
  
 codeception: codeception:
-    <<: *run_webserver+    <<: *run_webserver  # Merge content of 'run_webserver'
     stage: test     stage: test
     services:     services:
Line 31: Line 32:
     variables:     variables:
         SELENIUM_HOST: 'selenium'         SELENIUM_HOST: 'selenium'
-    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 ''params:env''
 +
 +<code yaml codeception.yml>
 +paths:
 +    tests: tests
 +    output: tests/_output
 +    data: tests/_data
 +    support: tests/_support
 +    envs: tests/_envs
 +actor_suffix: Tester
 +extensions:
 +    enabled:
 +        - Codeception\Extension\RunFailed
 +coverage:
 +    enabled: true
 +    include:
 +        - DistributionPackages/*
 +modules:
 +    enabled: [ Asserts ]
 +params:
 +    - env
 +</code>
 ==== Api test config: ==== ==== Api test config: ====
  
gitlab-codeception.1551640328.txt.gz · Last modified: 2019/03/03 19:12 by admin