This repository has been archived by the owner on Oct 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OT-473 create integration test script
- Loading branch information
1 parent
c1d4871
commit 0e8e04a
Showing
6 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
LOG_FILE=test_driver/logs/log.txt | ||
success=0 | ||
failed=0 | ||
|
||
if [[ -f "$LOG_FILE" ]]; then | ||
rm ${LOG_FILE} | ||
fi | ||
touch ${LOG_FILE} | ||
|
||
for test in test_driver/* | ||
do | ||
if [[ -f "$test" ]]; then | ||
echo "Running test: $test" | ||
flutter drive --target=test_driver/setup/app.dart --driver=${test} --flavor development >> $LOG_FILE 2>&1 | ||
if [[ $? -eq 0 ]]; then | ||
echo "$test successfully finished" | ||
((success++)) | ||
else | ||
echo "$test failed - See more information in test_driver/log.txt" | ||
((failed++)) | ||
fi | ||
fi | ||
done | ||
|
||
echo | ||
testCount=$((success + failed)) | ||
echo "Test suite finished" | ||
echo "All tests: $testCount" | ||
echo "Successful: $success" | ||
echo "Failed: $failed" |