Docker image to run your automated acceptance tests in deplyoment pipelines, e.g. GitLab CI.
akoehnlein/codeception
akoehnlein/codeception:nodejs
(including node.js and npm)
Update your .gitlab-ci.yml
file:
stages:
- acceptance
test staging after deployment:
stage: acceptance
image: akoehnlein/codeception
services:
- name: selenium/standalone-chrome
alias: selenium
variables:
SELENIUM_HOST: 'selenium'
script:
- codecept run --html
artifacts:
paths:
- tests/_output/
expire_in: 2 weeks
Update your codeception.yml
file:
params:
- env # load params from environment vars
Update your tests/acceptance.suite.yml
file:
modules:
enabled:
- WebDriver:
host: %SELENIUM_HOST%
If you have problems with fatal errors, telling "no such session", it can help to increase shared memory in your runner configuration. More information