mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Bash script to run all tests
This commit is contained in:
parent
97919aa573
commit
117930ad35
40
dusk.sh
Normal file
40
dusk.sh
Normal file
@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "$ php artisan optimize"
|
||||
php artisan optimize
|
||||
|
||||
GENERIC_TESTS=`find tests/Browser/ClientPortal/ -maxdepth 1 -type f -name '*.php'`
|
||||
|
||||
for TEST_CLASS in $GENERIC_TESTS; do
|
||||
echo "Test class: $TEST_CLASS"
|
||||
|
||||
echo "$ php artisan migrate:fresh --seed"
|
||||
php artisan migrate:fresh --seed &> /dev/null
|
||||
|
||||
echo "$ php artisan ninja:create-single-account"
|
||||
php artisan ninja:create-single-account &> /dev/null
|
||||
|
||||
echo "$ php artisan dusk $TEST_CLASS"
|
||||
php artisan dusk --stop-on-failure $TEST_CLASS
|
||||
|
||||
echo "=========================================="
|
||||
done || exit 1
|
||||
|
||||
GATEWAY_TESTS=`find tests/Browser/ClientPortal/Gateways/ -type f -name '*.php'`
|
||||
|
||||
for TEST_CLASS in $GATEWAY_TESTS; do
|
||||
echo "Test class: $TEST_CLASS"
|
||||
|
||||
echo "$ php artisan migrate:fresh --seed"
|
||||
php artisan migrate:fresh --seed &> /dev/null
|
||||
|
||||
echo "$ php artisan ninja:create-single-account"
|
||||
php artisan ninja:create-single-account &> /dev/null
|
||||
|
||||
echo "$ php artisan dusk $TEST_CLASS"
|
||||
php artisan dusk --stop-on-failure $TEST_CLASS
|
||||
|
||||
echo "=========================================="
|
||||
done || exit 1
|
||||
|
||||
echo 'All tests completed successfully.'
|
Loading…
x
Reference in New Issue
Block a user