Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 670 Bytes

tests.md

File metadata and controls

41 lines (29 loc) · 670 Bytes

How to run tests

# install php-cs-fixer
composer global require friendsofphp/php-cs-fixer ^2.0.0

# go to the project's root directory, but NOT the tests subdirectory 
cd <project_dir>

# install dependencies
composer update

# check coding style
php-cs-fixer fix --dry-run

# fix coding style
php-cs-fixer fix

# run tests
sh ./tests/run.sh

Advanced usage

You can use these commands to do more specific tasks.

# generate necessary files to run the tests
./vendor/bin/codecept build

# run all tests
./vendor/bin/codecept run

# run the specific suite
./vendor/bin/codecept run <suite>

# run specific test
./vendor/bin/codecept run <file>