The Developer Preview for Android 11 is now available; test it out and share your feedback.

androidx.test.ext.junit.rules

Classes

ActivityScenarioRule<A extends Activity> ActivityScenarioRule launches a given activity before the test starts and closes after the test.