-
Notifications
You must be signed in to change notification settings - Fork 6
/
runSystemTests.sh
executable file
·60 lines (47 loc) · 3.31 KB
/
runSystemTests.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Run Systemtests automatically on a local machine
# call './runSystemTests.sh' in order to execute all tests
#
# local setup requires gradle and android sdk
# (if android development with android studio works, this should be the case)
# accept all sdk licenses
yes | sdkmanager --licenses
# run systemtest for collector core
## clean test to make sure we run test everytime
./gradlew :collector:cleanPixel6api34DebugAndroidTest
## run system tests
./gradlew :collector:pixel6api34DebugAndroidTest || exit
#
# run systemtest for ivs
## clean test to make sure we run test everytime
./gradlew :collector-amazon-ivs:cleanPixel6api34DebugAndroidTest
## run all ivs tests except TV scenario, since TVs are not supported by gradle automated tests
./gradlew :collector-amazon-ivs:pixel6api34DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.notClass=com.bitmovin.analytics.amazon.ivs.TVBasicScenariosTest || exit
# run systemtest for exoplayer
## clean test to make sure we run test everytime
./gradlew :collector-exoplayer:cleanPixel6api34DebugAndroidTest
## run test
./gradlew :collector-exoplayer:pixel6api34DebugAndroidTest || exit
# run systemtest for media3-exoplayer
## clean test to make sure we run test everytime
./gradlew :collector-media3-exoplayer:cleanPixel6api34DebugAndroidTest
## run test
./gradlew :collector-media3-exoplayer:pixel6api34DebugAndroidTest || exit
# run systemtest for bitmovin-player
## clean test to make sure we run test everytime
./gradlew :collector-bitmovin-player:cleanPixel6api34DebugAndroidTest
## run test
./gradlew :collector-bitmovin-player:pixel6api34DebugAndroidTest || exit
## Commands that can be used for local testing of specific test classes and tests
## commands to run specific test classes
#./gradlew :collector-bitmovin-player:pixel6api34DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.bitmovin.analytics.bitmovin.player.PhoneBasicScenariosTest || exit
#./gradlew :collector-bitmovin-player:pixel6api34DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.bitmovin.analytics.bitmovin.player.apiv2.PhoneBasicScenariosTest || exit
#./gradlew :collector-bitmovin-player:pixel6api34DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.bitmovin.analytics.bitmovin.player.apiv2.AttachingScenariosTest || exit
#./gradlew :collector-bitmovin-player:pixel6api34DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.bitmovin.analytics.bitmovin.player.BundledAnalyticsTest || exit
#./gradlew :collector-bitmovin-player:pixel6api34DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.bitmovin.analytics.bitmovin.player.BundledAnalyticsTest || exit
## command to run specific test (with regex) in a loop (can be used to verify flaky test is stable)
#for i in {1..50}; do
# echo "RUN $i/50"
# ./gradlew :collector-bitmovin-player:cleanPixel6api34DebugAndroidTest
# ./gradlew :collector-bitmovin-player:pixel6api34DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.tests_regex=com.bitmovin.analytics.bitmovin.player.PhoneBasicScenariosTest.test_wrongAnalyticsLicense_ShouldNotInterfereWithPlayer || exit
#done
# ./gradlew :collector-exoplayer:pixel6api34DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.tests_regex=com.bitmovin.analytics.exoplayer.ErrorScenariosTest.test_vodWithDrm_wrongConfig || exit