mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 18:47:03 +05:30
benchmark: annotate test sizes for filtering
This commit is contained in:
parent
98734d01fd
commit
3050df7d64
2 changed files with 4 additions and 0 deletions
|
@ -5,9 +5,11 @@ import androidx.benchmark.macro.CompilationMode
|
||||||
import androidx.benchmark.macro.StartupMode
|
import androidx.benchmark.macro.StartupMode
|
||||||
import androidx.benchmark.macro.StartupTimingMetric
|
import androidx.benchmark.macro.StartupTimingMetric
|
||||||
import androidx.benchmark.macro.junit4.MacrobenchmarkRule
|
import androidx.benchmark.macro.junit4.MacrobenchmarkRule
|
||||||
|
import androidx.test.filters.LargeTest
|
||||||
import org.junit.Rule
|
import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
|
||||||
|
@LargeTest
|
||||||
class BaselineProfileBenchmark {
|
class BaselineProfileBenchmark {
|
||||||
@get:Rule val benchmarkRule = MacrobenchmarkRule()
|
@get:Rule val benchmarkRule = MacrobenchmarkRule()
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@ package dev.msfjarvis.claw.benchmark
|
||||||
|
|
||||||
import androidx.benchmark.macro.ExperimentalBaselineProfilesApi
|
import androidx.benchmark.macro.ExperimentalBaselineProfilesApi
|
||||||
import androidx.benchmark.macro.junit4.BaselineProfileRule
|
import androidx.benchmark.macro.junit4.BaselineProfileRule
|
||||||
|
import androidx.test.filters.MediumTest
|
||||||
import androidx.test.platform.app.InstrumentationRegistry
|
import androidx.test.platform.app.InstrumentationRegistry
|
||||||
import androidx.test.uiautomator.UiDevice
|
import androidx.test.uiautomator.UiDevice
|
||||||
import org.junit.Before
|
import org.junit.Before
|
||||||
|
@ -9,6 +10,7 @@ import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
|
||||||
@ExperimentalBaselineProfilesApi
|
@ExperimentalBaselineProfilesApi
|
||||||
|
@MediumTest
|
||||||
class BaselineProfileGenerator {
|
class BaselineProfileGenerator {
|
||||||
@get:Rule val baselineProfileRule = BaselineProfileRule()
|
@get:Rule val baselineProfileRule = BaselineProfileRule()
|
||||||
private lateinit var device: UiDevice
|
private lateinit var device: UiDevice
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue