From efcb784e9b98fa316254e32e44081899107c1e89 Mon Sep 17 00:00:00 2001 From: TanelOrumaa <57108802+TanelOrumaa@users.noreply.github.com> Date: Wed, 6 Oct 2021 10:57:08 +0300 Subject: [PATCH 1/3] MOB-33 YAML changes to run junit tests. --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 83a06c6..da8f61e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,6 +25,9 @@ jobs: - name: run gradlew run: ./gradlew assembleDebug + - name: run tests + run: ./gradlew test + - name: upload apk uses: actions/upload-artifact@v2 with: From 20d08f8d6c7f6243ee69b2434798b9e90d31fd6d Mon Sep 17 00:00:00 2001 From: Tanel Orumaa Date: Wed, 6 Oct 2021 11:02:56 +0300 Subject: [PATCH 2/3] MOB-33 Testing unit tests CI --- .../java/com/tarkvaraprojekt/mobileauthapp/ExampleUnitTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MobileAuthApp/app/src/test/java/com/tarkvaraprojekt/mobileauthapp/ExampleUnitTest.kt b/MobileAuthApp/app/src/test/java/com/tarkvaraprojekt/mobileauthapp/ExampleUnitTest.kt index 021ab51..fa527ad 100644 --- a/MobileAuthApp/app/src/test/java/com/tarkvaraprojekt/mobileauthapp/ExampleUnitTest.kt +++ b/MobileAuthApp/app/src/test/java/com/tarkvaraprojekt/mobileauthapp/ExampleUnitTest.kt @@ -12,6 +12,6 @@ import org.junit.Assert.* class ExampleUnitTest { @Test fun addition_isCorrect() { - assertEquals(4, 2 + 2) + assertEquals(4, 2 + 5) } } \ No newline at end of file From 812647cade496ef8be0286652f3fb0abb20ade36 Mon Sep 17 00:00:00 2001 From: Tanel Orumaa Date: Wed, 6 Oct 2021 11:09:00 +0300 Subject: [PATCH 3/3] MOB-33 Reverting invalid test --- .../java/com/tarkvaraprojekt/mobileauthapp/ExampleUnitTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MobileAuthApp/app/src/test/java/com/tarkvaraprojekt/mobileauthapp/ExampleUnitTest.kt b/MobileAuthApp/app/src/test/java/com/tarkvaraprojekt/mobileauthapp/ExampleUnitTest.kt index fa527ad..021ab51 100644 --- a/MobileAuthApp/app/src/test/java/com/tarkvaraprojekt/mobileauthapp/ExampleUnitTest.kt +++ b/MobileAuthApp/app/src/test/java/com/tarkvaraprojekt/mobileauthapp/ExampleUnitTest.kt @@ -12,6 +12,6 @@ import org.junit.Assert.* class ExampleUnitTest { @Test fun addition_isCorrect() { - assertEquals(4, 2 + 5) + assertEquals(4, 2 + 2) } } \ No newline at end of file