From 3050df7d643ab0226f42b60b704bd8ce84a2b4fd Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 24 Jun 2022 18:12:15 +0530 Subject: [PATCH] benchmark: annotate test sizes for filtering --- .../dev/msfjarvis/claw/benchmark/BaselineProfileBenchmark.kt | 2 ++ .../dev/msfjarvis/claw/benchmark/BaselineProfileGenerator.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/benchmark/src/main/kotlin/dev/msfjarvis/claw/benchmark/BaselineProfileBenchmark.kt b/benchmark/src/main/kotlin/dev/msfjarvis/claw/benchmark/BaselineProfileBenchmark.kt index bd544222..fddd7f7e 100644 --- a/benchmark/src/main/kotlin/dev/msfjarvis/claw/benchmark/BaselineProfileBenchmark.kt +++ b/benchmark/src/main/kotlin/dev/msfjarvis/claw/benchmark/BaselineProfileBenchmark.kt @@ -5,9 +5,11 @@ import androidx.benchmark.macro.CompilationMode import androidx.benchmark.macro.StartupMode import androidx.benchmark.macro.StartupTimingMetric import androidx.benchmark.macro.junit4.MacrobenchmarkRule +import androidx.test.filters.LargeTest import org.junit.Rule import org.junit.Test +@LargeTest class BaselineProfileBenchmark { @get:Rule val benchmarkRule = MacrobenchmarkRule() diff --git a/benchmark/src/main/kotlin/dev/msfjarvis/claw/benchmark/BaselineProfileGenerator.kt b/benchmark/src/main/kotlin/dev/msfjarvis/claw/benchmark/BaselineProfileGenerator.kt index a582af8c..5b3fa08a 100644 --- a/benchmark/src/main/kotlin/dev/msfjarvis/claw/benchmark/BaselineProfileGenerator.kt +++ b/benchmark/src/main/kotlin/dev/msfjarvis/claw/benchmark/BaselineProfileGenerator.kt @@ -2,6 +2,7 @@ package dev.msfjarvis.claw.benchmark import androidx.benchmark.macro.ExperimentalBaselineProfilesApi import androidx.benchmark.macro.junit4.BaselineProfileRule +import androidx.test.filters.MediumTest import androidx.test.platform.app.InstrumentationRegistry import androidx.test.uiautomator.UiDevice import org.junit.Before @@ -9,6 +10,7 @@ import org.junit.Rule import org.junit.Test @ExperimentalBaselineProfilesApi +@MediumTest class BaselineProfileGenerator { @get:Rule val baselineProfileRule = BaselineProfileRule() private lateinit var device: UiDevice