#!/bin/sh

# /*!
#     Run all tests for the DzTask module.
#     @author Adrien Desfourneaux (aka Dieze) <dieze51@gmail.com>
#  */

# SCRIPTPATH = zf2_app/module/DzTask/script
SCRIPTPATH=$( cd "$(dirname "$0")" ; pwd -P )
cd $SCRIPTPATH/..
../../vendor/bin/phpspec run
../../vendor/bin/codecept run

#!/bin/sh

# /*!
#     Run all tests for the DzTask module.
#     @author Adrien Desfourneaux (aka Dieze) <dieze51@gmail.com>
#  */

# SCRIPTPATH = zf2_app/module/DzTask/script
SCRIPTPATH=$( cd "$(dirname "$0")" ; pwd -P )
cd $SCRIPTPATH/..

if [ $# -eq 0 ]; then
    ../../vendor/bin/phpspec run
    ../../vendor/bin/codecept run
fi;

if [ "$1" = "spec" ]; then ../../vendor/bin/phpspec run; fi
if [ "$1" = "cept" ]; then ../../vendor/bin/codecept run; fi

Add parameter to run spec or cept or all tests
Add parameter to run spec or cept or all tests
