-
Notifications
You must be signed in to change notification settings - Fork 34
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
Start running UI tests on API 30 emulators in CI. #120
Conversation
Ah, the |
639dcdf
to
be793c9
Compare
be793c9
to
6ba52a4
Compare
6ba52a4
to
0b4504e
Compare
compileSdkVersion(30) | ||
buildToolsVersion = "29.0.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been optional since AGP 3, and so instead of upgrading this to the latest version I just removed it.
@@ -19,36 +18,33 @@ import java.util.concurrent.TimeUnit.SECONDS | |||
|
|||
class RadiographyUiTest { | |||
|
|||
@get:Rule | |||
val activityRule = ActivityTestRule(TestActivity::class.java, false, false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now deprecated, replaced by ActivityScenario
and ActivityScenarioRule
(we can't use the rule because each test passes a different intent).
@@ -43,6 +43,7 @@ dependencies { | |||
androidTestImplementation(Dependencies.InstrumentationTests.Core) | |||
androidTestImplementation(Dependencies.InstrumentationTests.Espresso) | |||
androidTestImplementation(Dependencies.InstrumentationTests.Rules) | |||
androidTestImplementation(Dependencies.InstrumentationTests.JUnit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed for ActivityScenarioRule
.
Tests seem to be flaking on 23 and 26:
|
No description provided.