From cc9d56f07d335630c3354c626b666dfb8a54d650 Mon Sep 17 00:00:00 2001 From: MiltonPM Date: Fri, 14 Jun 2019 09:13:19 -0400 Subject: [PATCH] Run Test units --- .circleci/config.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c99c88518..3c003b11d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,23 +11,15 @@ jobs: - /KR.*/ steps: - checkout - - run: ls -la /tmp/ - run: service mysqld restart - run: mysql -u root -ppassword -e "create database test;" - run: composer install - run: name: Run Test Units command: | - set -e - find tests/ -name "*Test.php" > tests.list - input="tests.list" - #while IFS= read -r line - #do - #if [ $line != "tests/unit/workflow/engine/src/ProcessMaker/BusinessModel/SkinsTest.php" ] && [ $line != "tests/unit/workflow/engine/src/ProcessMaker/BusinessModel/LanguageTest.php" ]; - #then - vendor/phpunit/phpunit/phpunit --coverage-xml ./coverage tests/unit/workflow/engine/src/ProcessMaker/Model/DelegationTest.php - #fi - #done < "$input" + set -e + mkdir coverage + vendor/phpunit/phpunit/phpunit --coverage-php coverage/result.php tests/unit/workflow/engine/src/ProcessMaker/Model/DelegationTest.php - run: ls -la coverage - run: mysql -u root -ppassword -e "use test; show tables;" - store_artifacts: