diff options
Diffstat (limited to 'render-test/android')
3 files changed, 7 insertions, 3 deletions
diff --git a/render-test/android/app/src/androidTest/java/android/app/NativeActivityTest.java b/render-test/android/app/src/androidTest/java/android/app/NativeActivityTest.java index 3d8c333902..d508a9d5a4 100644 --- a/render-test/android/app/src/androidTest/java/android/app/NativeActivityTest.java +++ b/render-test/android/app/src/androidTest/java/android/app/NativeActivityTest.java @@ -6,6 +6,7 @@ import androidx.test.rule.ActivityTestRule; import org.junit.Rule; import org.junit.Test; +import org.junit.Assert; import org.junit.runner.RunWith; import android.util.Log; @@ -24,6 +25,8 @@ public class NativeActivityTest { Log.v("Test", "Test is running"); Thread.sleep(1000L); } - Log.v("Test", "End the test"); + Log.v("Test", "All render tests are finished!"); + Assert.assertTrue("All test cases are passed", TestState.testResult); + } }
\ No newline at end of file diff --git a/render-test/android/app/src/androidTest/java/android/app/TestState.java b/render-test/android/app/src/androidTest/java/android/app/TestState.java index 44a0653fb6..b374a72afe 100644 --- a/render-test/android/app/src/androidTest/java/android/app/TestState.java +++ b/render-test/android/app/src/androidTest/java/android/app/TestState.java @@ -2,4 +2,5 @@ package android.app; public class TestState { static boolean running = true; + static boolean testResult = true; }
\ No newline at end of file diff --git a/render-test/android/app/src/main/assets/to_zip.txt b/render-test/android/app/src/main/assets/to_zip.txt index fbf9539583..e440a7c514 100644 --- a/render-test/android/app/src/main/assets/to_zip.txt +++ b/render-test/android/app/src/main/assets/to_zip.txt @@ -12,8 +12,8 @@ mapbox-gl-js/test/integration/sprites/ vendor/mapbox-gl-styles/styles/ vendor/mapbox-gl-styles/sprites/ vendor/mvt-fixtures/real-world/ -ignores/ +render-test/ignores/ render-test/metrics/android/ render-test/expected/ android-manifest-probe-network-gfx.json -android-manifest-probe-memory.json
\ No newline at end of file +android-manifest-probe-memory.json |