Skip to content

ActivityScenarioRule launches an EmptyActivity in between each test #411

@ChrisCraik

Description

@ChrisCraik

This adds several hundred ms to each test using the Rule.

The separate launch should be confined to only the affected API levels:

public void finishActivity(Activity activity) {

Additionally, consider disabling animations with overridePendingTransitions(0,0) for EmptyActivity and similar, since most tests run with window animations enabled (and they're difficult to disable in Studio: https://issuetracker.google.com/issues/138120842)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions