summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHung Nguyen <hungnv@google.com>2023-10-06 12:04:19 +0100
committerHung Nguyen <hungnv@google.com>2023-10-06 17:51:52 +0100
commit01c3a76c6461dddc51d79d4d6e6a94ea8dbcd463 (patch)
tree70a0cc2e11d7ab01dd27b11aebd06bec8efaa270
parent108e14e9bb5a7b522bc6bf7dffbe72adb7e9b22f (diff)
downloaddata-binding-01c3a76c6461dddc51d79d4d6e6a94ea8dbcd463.tar.gz
Disable data binding TooManyLayoutsTest on Windows
TooManyLayoutsTest is a stress test. It takes a long time to run and also has high variance in running time. Disabling it on Windows to reduce build latency (b/301266550) and avoid potential timeouts (b/300720819). We probably don't need to re-enable this test later as having it run on other platforms is probably enough. Test: Disabling TooManyLayoutsTest on Windows Bug: 301266550, 300720819 Change-Id: Ie37c454748dd701ce82e625f8022dd5872883a56
-rw-r--r--compilationTests/src/test/java/androidx/databinding/compilationTest/TooManyLayoutsTest.kt12
1 files changed, 12 insertions, 0 deletions
diff --git a/compilationTests/src/test/java/androidx/databinding/compilationTest/TooManyLayoutsTest.kt b/compilationTests/src/test/java/androidx/databinding/compilationTest/TooManyLayoutsTest.kt
index 61f607b7..112c7092 100644
--- a/compilationTests/src/test/java/androidx/databinding/compilationTest/TooManyLayoutsTest.kt
+++ b/compilationTests/src/test/java/androidx/databinding/compilationTest/TooManyLayoutsTest.kt
@@ -15,7 +15,9 @@
*/
package androidx.databinding.compilationTest
+import com.android.testutils.AssumeUtil
import com.google.common.truth.Truth.assertWithMessage
+import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
@@ -26,6 +28,16 @@ import org.junit.runners.JUnit4
@RunWith(JUnit4::class)
class TooManyLayoutsTest : DataBindingCompilationTestCase() {
+ @Before
+ fun setUp() {
+ // This test takes a long time to run and also has high variance in running time.
+ // We disable it on Windows to reduce build latency (b/301266550) and avoid potential
+ // timeouts (b/300720819).
+ // We probably don't need to re-enable this test later as having it run on other platforms
+ // is probably enough.
+ AssumeUtil.assumeNotWindows()
+ }
+
@Test
fun tooManyLayouts() {
loadApp()