Skip to content

Commit

Permalink
Generate baseline profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Oct 5, 2023
1 parent cc1183c commit 57aa3b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,18 @@ import org.junit.runner.RunWith
@LargeTest
class BaselineProfileGenerator {

@get:Rule
val rule = BaselineProfileRule()
@get:Rule
val rule = BaselineProfileRule()

@Test
fun generate() {
rule.collect("com.skydoves.transformationlayoutdemo") {
// This block defines the app's critical user journey. Here we are interested in
// optimizing for app startup. But you can also navigate and scroll
// through your most important UI.

// Start default activity for your app
pressHome()
startActivityAndWait()

// TODO Write more interactions to optimize advanced journeys of your app.
// For example:
// 1. Wait until the content is asynchronously loaded
// 2. Scroll the feed content
// 3. Navigate to detail screen

// Check UiAutomator documentation for more information how to interact with the app.
// https://d.android.com/training/testing/other-components/ui-automator
}
@Test
fun generate() {
rule.collect(
"com.skydoves.transformationlayoutdemo",
stableIterations = 2,
maxIterations = 8,
) {
pressHome()
startActivityAndWait()
}
}
}

This file was deleted.

0 comments on commit 57aa3b2

Please sign in to comment.