-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathrun-tests.sh
executable file
·27 lines (19 loc) · 1.04 KB
/
run-tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#/bin/bash
set -e
adb uninstall org.storymaker.app
adb uninstall org.storymaker.app.test
echo "checkout 'testing' branch in external/liger"
#cd external/liger
#git checkout testing
#cd ../..
echo "copy local gitignored test.xml to app/res/values/test.xml"
cp test.xml app/res/values/test.xml
echo "Assemble Storymaker Sqlite .apk"
./gradlew assembleMainSqliteDebug
echo "Assemble Storymaker Sqlite test .apk"
./gradlew assembleMainSqliteDebugTest
echo "Run tests with Spoon"
#java -jar spoon-runner-1.1.2-jar-with-dependencies.jar --sdk ~/Android/Sdk/ --apk ./app/build/outputs/apk/app-mainSqlite-debug.apk --test-apk ./app/build/outputs/apk/app-mainSqlite-debug-test-unaligned.apk --class-name org.storymaker.app.tests.MinimumTest
java -jar spoon-runner-1.1.2-jar-with-dependencies.jar --sdk ~/Android/Sdk/ --apk ./app/build/outputs/apk/app-mainSqlite-debug.apk --test-apk ./app/build/outputs/apk/app-mainSqlite-debug-test-unaligned.apk --class-name org.storymaker.app.tests.EndToEndTest
adb uninstall org.storymaker.app
adb uninstall org.storymaker.app.test