Skip to content

Latest commit

 

History

History
43 lines (21 loc) · 799 Bytes

40-testing-giiant.md

File metadata and controls

43 lines (21 loc) · 799 Bytes

Testing giiant

Requirements

Setup

Go to the tests directory

cd tests

Start phd-potemkin-stack

docker-compose up -d

Usage

Debug and development

Start a bash

docker-compose run --rm -e YII_ENV=test phpfpm bash

Initialize database and application

$ setup.sh

Run cli test suite, group mandatory

$ codecept run -g mandatory cli,acceptance --steps

Your output should look similar to this.

CI one-liner

Via compose run

docker-compose run --rm -e YII_ENV=test phpfpm codecept run -g mandatory -g ${GIIANT_TEST_DB} cli,unit,functional,acceptance