mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +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: | ||||
| cp phpunit.cover.xml phpunit.xml | ||||
|  | ||||
| # test! | ||||
| if [ -z "$1" ] | ||||
| # delete test databases: | ||||
| if [ -f storage/database/testing.db ] | ||||
| then | ||||
|     phpdbg -qrr /usr/local/bin/phpunit | ||||
|     rm storage/database/testing.db | ||||
| fi | ||||
|  | ||||
| # directories to look in: | ||||
| #dirs=("controllers" "database" "factories" "generators" "helpers" "models" "middleware" "repositories" "support") | ||||
| # | ||||
| #if [ ! -z "$1" ] | ||||
| #then | ||||
| #    for i in "${dirs[@]}" | ||||
| #    do | ||||
| #        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 | ||||
| if [ -f storage/database/testing-copy.db ] | ||||
| then | ||||
|     rm storage/database/testing-copy.db | ||||
| fi | ||||
|  | ||||
| # test! | ||||
| phpdbg -qrr /usr/local/bin/phpunit | ||||
|  | ||||
| # restore .env file | ||||
| cp .env.local .env | ||||
|   | ||||
		Reference in New Issue
	
	Block a user