benchmark: annotate test sizes for filtering

This commit is contained in:
Harsh Shandilya 2022-06-24 18:12:15 +05:30
parent 98734d01fd
commit 3050df7d64
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 4 additions and 0 deletions

View file

@ -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()

View file

@ -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