Skip to content

Instantly share code, notes, and snippets.

@mikolajprzybysz
Last active September 26, 2018 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikolajprzybysz/904df884d3933604cbb02e58fb89a81c to your computer and use it in GitHub Desktop.
Save mikolajprzybysz/904df884d3933604cbb02e58fb89a81c to your computer and use it in GitHub Desktop.
# for mac
docker run -it -v $PWD:/app -w /app composer:1.7 require "codeception/codeception" --dev
docker run -it -v $PWD:/app -w /app php:7.2-alpine ./vendor/bin/codecept init api
# Use the following answers. Important! There is no trailing slash!
# > ? Where tests will be stored? (tests) tests/api
# > ? Start url for tests (http://localhost/api) http://localhost
# or alternatively if you are not yet fun of docker
# composer require "codeception/codeception" --dev
# ./vendor/bin/codecept init api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment