diff options
| author | Aleksandr Granin <aleksandr@mullvad.net> | 2021-03-15 09:17:57 +0100 |
|---|---|---|
| committer | Aleksandr Granin <aleksandr@mullvad.net> | 2021-03-19 20:28:23 +0100 |
| commit | 0fa4da6d5641c6d891c45a75cd51e7550a1f389e (patch) | |
| tree | 4bb50504a22e0259151a7369f7151ea0534df1de | |
| parent | c5d86b2d8eed630444b512083d988561b3471326 (diff) | |
| download | mullvadvpn-0fa4da6d5641c6d891c45a75cd51e7550a1f389e.tar.xz mullvadvpn-0fa4da6d5641c6d891c45a75cd51e7550a1f389e.zip | |
Add unit test into CI
| -rw-r--r-- | .github/workflows/android-app.yml | 1 | ||||
| -rw-r--r-- | android/build.gradle | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/android-app.yml b/.github/workflows/android-app.yml index 7119167f76..f87b518774 100644 --- a/.github/workflows/android-app.yml +++ b/.github/workflows/android-app.yml @@ -75,3 +75,4 @@ jobs: cargo build --target aarch64-linux-android --verbose --package mullvad-jni cd android ./gradlew --console plain assembleDebug + ./gradlew testDebugUnitTest diff --git a/android/build.gradle b/android/build.gradle index eed3cb6505..91f1ff8945 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -82,6 +82,17 @@ android { dependsOn copyExtraAssets } } + + testOptions { + unitTests.all { + testLogging { + outputs.upToDateWhen { false } + events "passed", "skipped", "failed", "standardOut", "standardError" + showCauses true + showExceptions true + } + } + } } tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { |
