mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 01:42:19 +00:00
Updated run scripts for tests.
This commit is contained in:
39
cover.sh
39
cover.sh
@@ -6,38 +6,19 @@ cp .env.testing .env
|
|||||||
# set cover:
|
# set cover:
|
||||||
cp phpunit.cover.xml phpunit.xml
|
cp phpunit.cover.xml phpunit.xml
|
||||||
|
|
||||||
# test!
|
# delete test databases:
|
||||||
if [ -z "$1" ]
|
if [ -f storage/database/testing.db ]
|
||||||
then
|
then
|
||||||
phpdbg -qrr /usr/local/bin/phpunit
|
rm storage/database/testing.db
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# directories to look in:
|
if [ -f storage/database/testing-copy.db ]
|
||||||
#dirs=("controllers" "database" "factories" "generators" "helpers" "models" "middleware" "repositories" "support")
|
then
|
||||||
#
|
rm storage/database/testing-copy.db
|
||||||
#if [ ! -z "$1" ]
|
fi
|
||||||
#then
|
|
||||||
# for i in "${dirs[@]}"
|
# test!
|
||||||
# do
|
phpdbg -qrr /usr/local/bin/phpunit
|
||||||
# firstFile="./tests/$i/$1.php"
|
|
||||||
# secondFile="./tests/$i/$1Test.php"
|
|
||||||
# if [ -f "$firstFile" ]
|
|
||||||
# then
|
|
||||||
# # run it!
|
|
||||||
# phpunit --verbose $firstFile
|
|
||||||
# exit $?
|
|
||||||
# fi
|
|
||||||
# if [ -f "$secondFile" ]
|
|
||||||
# then
|
|
||||||
# # run it!
|
|
||||||
# phpunit --verbose $secondFile
|
|
||||||
# exit $?
|
|
||||||
# fi
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# done
|
|
||||||
#
|
|
||||||
#fi
|
|
||||||
|
|
||||||
# restore .env file
|
# restore .env file
|
||||||
cp .env.local .env
|
cp .env.local .env
|
||||||
|
40
pu.sh
40
pu.sh
@@ -3,39 +3,19 @@
|
|||||||
# set testing environment
|
# set testing environment
|
||||||
cp .env.testing .env
|
cp .env.testing .env
|
||||||
|
|
||||||
# test!
|
# delete test databases:
|
||||||
if [ -z "$1" ]
|
if [ -f storage/database/testing.db ]
|
||||||
then
|
then
|
||||||
#phpunit --verbose
|
rm storage/database/testing.db
|
||||||
phpunit
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# directories to look in:
|
if [ -f storage/database/testing-copy.db ]
|
||||||
#dirs=("controllers" "database" "factories" "generators" "helpers" "models" "middleware" "repositories" "support")
|
then
|
||||||
#
|
rm storage/database/testing-copy.db
|
||||||
#if [ ! -z "$1" ]
|
fi
|
||||||
#then
|
|
||||||
# for i in "${dirs[@]}"
|
# test!
|
||||||
# do
|
phpunit
|
||||||
# firstFile="./tests/$i/$1.php"
|
|
||||||
# secondFile="./tests/$i/$1Test.php"
|
|
||||||
# if [ -f "$firstFile" ]
|
|
||||||
# then
|
|
||||||
# # run it!
|
|
||||||
# phpunit --verbose $firstFile
|
|
||||||
# exit $?
|
|
||||||
# fi
|
|
||||||
# if [ -f "$secondFile" ]
|
|
||||||
# then
|
|
||||||
# # run it!
|
|
||||||
# phpunit --verbose $secondFile
|
|
||||||
# exit $?
|
|
||||||
# fi
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# done
|
|
||||||
#
|
|
||||||
#fi
|
|
||||||
|
|
||||||
# restore .env file
|
# restore .env file
|
||||||
cp .env.local .env
|
cp .env.local .env
|
||||||
|
Reference in New Issue
Block a user