Skip to content
Codeceptjs project example with docker compose, based on my project running on Jenkins CI
JavaScript Dockerfile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docker
scenarios
README.MD
codecept.conf.js
package-lock.json
package.json
steps.d.ts
steps_file.js

README.MD

Codeceptjs project with docker compose

Build and up containers

USER_ID=$(id -u):$(id -g) docker-compose -f docker/docker-compose.test.yml build

USER_ID=$(id -u):$(id -g) docker-compose -f docker/docker-compose.test.yml up -d

docker-compose -f docker/docker-compose.test.yml logs -f

Execute tests

docker exec codeceptjs codeceptjs run --plugins allure
  • USER_ID is used to avoid files owned by root, this could cause some problems with jenkins.

  • The codeceptjs container will remain sleeping till you send a docker exec

  • The entrypoint file allows to install extra packages in the codeceptjs container

  • We also use allure plugin in jenkins to see the tests result

have fun ;)

You can’t perform that action at this time.