BASH Aliases

BASH Aliases

In order to aid development, various bash aliases exist. To use any of these aliases, SSH to the development server and type the alias. These scripts are loaded in the ~/.bashrc file.

isplog

Tail the ISP log file

LOGFILE=`date +%Y%m%d`.log
alias isplog="cd /home/getconnected/domains/dev.getconnected.co.za/public_html/fintech; tail -f storage/logs/$LOGFILE"

tests

Change to the tests directory

alias tests="cd /home/getconnected/domains/dev.getconnected.co.za/public_html/fintech/tests/Unit/"`

t

Run tests in the current group

fintech/vendor/bin/phpunit --group=current

t2

Run all tests and produce coverage reports

fintech/vendor/bin/phpunit --coverage-html fintech/tests/Reports/

Coverage reports can be found at: http://dev.getconnected.co.za/fintech/tests/Reports/index.html