Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update androidx.test and friends #765

Merged
merged 2 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
agp = "7.3.1"
androidx-appcompat = "1.1.0"
androidx-core = "1.3.0"
androidx-test = "1.1.0"
androidx-test-ext = "1.1.1"
androidx-test = "1.5.0"
androidx-test-ext = "1.1.5"
autoService = "1.1.1"
autoValue = "1.10.1"
buildconfig = "4.1.2"
Expand Down Expand Up @@ -104,4 +104,4 @@ ktlintRaw = { module = "org.jlleitschuh.gradle:ktlint-gradle", version.ref = "kt

mavenPublishRaw = { module = "com.vanniktech:gradle-maven-publish-plugin", version.ref = "mavenPublish" }

truth = "com.google.truth:truth:1.1.3"
truth = "com.google.truth:truth:1.1.5"
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withText
import androidx.test.ext.junit.rules.ActivityScenarioRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.rule.ActivityTestRule
import com.google.common.truth.Truth.assertThat
import com.squareup.scopes.ComponentHolder
import org.junit.Rule
Expand All @@ -16,7 +16,7 @@ import org.junit.runner.RunWith
class AnvilSampleTest {

@Rule @JvmField
val activityRule = ActivityTestRule(MainActivity::class.java)
val activityRule = ActivityScenarioRule(MainActivity::class.java)

@Test fun text_is_displayed() {
onView(withText("Hephaestus, son of (No Father) and Hera")).check(matches(isDisplayed()))
Expand Down