mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 17:33:45 +00:00
Old cover script.
This commit is contained in:
12
cover.sh
12
cover.sh
@@ -9,19 +9,21 @@ cp phpunit.cover.xml phpunit.xml
|
|||||||
# delete test databases:
|
# delete test databases:
|
||||||
if [ -f storage/database/testing.db ]
|
if [ -f storage/database/testing.db ]
|
||||||
then
|
then
|
||||||
rm storage/database/testing.db
|
echo "Will not remove test db"
|
||||||
|
# rm storage/database/testing.db
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f storage/database/testing-copy.db ]
|
if [ -f storage/database/testing-copy.db ]
|
||||||
then
|
then
|
||||||
rm storage/database/testing-copy.db
|
echo "Will not remove test db"
|
||||||
|
# rm storage/database/testing-copy.db
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# test!
|
# test!
|
||||||
if [ -z "$1" ]
|
if [ -z "$1" ]
|
||||||
then
|
then
|
||||||
echo "Running all tests..."
|
echo "Running all tests..."
|
||||||
phpunit --verbose
|
phpunit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# test selective..
|
# test selective..
|
||||||
@@ -37,14 +39,14 @@ then
|
|||||||
then
|
then
|
||||||
# run it!
|
# run it!
|
||||||
echo "Now running $firstFile"
|
echo "Now running $firstFile"
|
||||||
phpunit --verbose $firstFile
|
phpunit $firstFile
|
||||||
result=$?
|
result=$?
|
||||||
fi
|
fi
|
||||||
if [ -f "$secondFile" ]
|
if [ -f "$secondFile" ]
|
||||||
then
|
then
|
||||||
# run it!
|
# run it!
|
||||||
echo "Now running $secondFile"
|
echo "Now running $secondFile"
|
||||||
phpunit --verbose $secondFile
|
phpunit $secondFile
|
||||||
result=$?
|
result=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user