Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
OT-473 create integration test script
Browse files Browse the repository at this point in the history
  • Loading branch information
Boehrsi authored and florianhaar committed Oct 24, 2019
1 parent c1d4871 commit 0e8e04a
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,4 @@ screenshots/
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
/android/key.properties
/test_driver/logs/log.txt
2 changes: 1 addition & 1 deletion lib/src/l10n/core_l10n.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Map<int, String> getStringMap(BuildContext context) {
10: L10n.get(L.video),
11: L10n.get(L.audio),
12: L10n.get(L.file),
13: "${L10n.get(L.profileDefaultStatus)}: $repositoryUrl",
13: "${L10n.get(L.profileDefaultStatus)}: $projectUrl",
14: L10n.get(L.groupNewDraft),
15: L10n.get(L.groupNameChanged),
16: L10n.get(L.groupImageChanged),
Expand Down
4 changes: 2 additions & 2 deletions lib/src/ui/strings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ String get sslTls => "SSL/TLS";

String get startTLS => "StartTLS";

String get repositoryUrl => "https://github.com/open-xchange/ox-coi";
String get projectUrl => "https://coi.me";

String get issueUrl => "https://github.com/open-xchange/ox-coi/issues";

String get featureRequestUrl => "https://openxchange.userecho.com/communities/4-ox-coi-messenger";

String get defaultStatus => "${L10n.get(L.profileDefaultStatus)} - $repositoryUrl";
String get defaultStatus => "${L10n.get(L.profileDefaultStatus)} - $projectUrl";

String get gif => "GIF";

Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions test_driver/setup/main_test_setup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ class Setup {

main(Duration timeout) {
setUpAll(() async {
final String adbPath =
'/Users/openxchange/Library/Android/sdk/platform-tools/adb';
final String adbPath = 'adb';
await Process.run(adbPath, [
'shell',
'pm',
Expand Down
32 changes: 32 additions & 0 deletions tools/test.runIntegrationTests.sh
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"

0 comments on commit 0e8e04a

Please sign in to comment.