Files
flame/scripts/test.sh
Erick 2259587b04 Moving tutorials to the Flame main repository (#720)
* Moving tutorials to the Flame main repository

* Update README.md

Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>

* Upgraded scripts to support multi projects

* Removed comment out code

* Adding WIP disclaimer

Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
2021-03-23 19:38:09 -03:00

17 lines
299 B
Bash
Executable File

#!/usr/bin/env bash
echo "Starting Flame Tester"
echo "---------------------"
for file in $(find . -type d -name "test"); do
dir=$(dirname $file)
cd $dir
echo "Testing $dir"
flutter test
test_result=$?
if [ $test_result -ne 0 ]; then
exit $test_result
fi
cd $(cd -)
done
exit 0