0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

dockerでCodeceptJS3.0.7実行環境を構築する

Last updated at Posted at 2021-10-11

dockerでCodeceptJS実行環境を構築する

完成品

動作環境
macOS Catalina 10.15.7
docker-compose version 1.29.2

使い方

git clone git@github.com:akasatati/codeceptjs_docker.git

cd codeceptjs_docker

# 設定ファイル準備
cp .env.example .env
cp conf/environments.example.js conf/environments.js

# buildします
docker-compose build

# お試し実行(yahooでCodeceptJSを検索するテストが走ります)
time docker-compose run --rm codeceptjs codeceptjs run --grep '(?=.*@yahoo)' --steps --verbose

Versionを変更したい場合

.env

TZ=Asia/Tokyo
// こちら↓を変更して再度 docker-compose build してください
CODECEPTJS_VERSION=3.0.7
YAHOO_URL=https://www.yahoo.co.jp/
CODECEPTJS_URL=https://codecept.io/

docker imageについて

CodeceptJS公式のdocker imageがあるので、そちらを利用しています。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?