Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Use Markdown for this comment
Set severity, which reflects how much the issue affects the use of the product
Change issue status back to 'Assigned'
Pending code changes (auto-populated)
[ID: 84651]
[ID: 85206]
Set the version(s) of the product affected by this issue (comma-separated list)
Set the version(s) of the product in which the issue should be fixed (comma-separated list)
Set the version(s) of the product in which the issue fix was verified (comma-separated list)
Set if this issue occurs in production
Set Reporter
Set Type
Set priority, which reflects how soon the issue should be fixed
Set Status
Set Assignee
Set Verifier
Remove item
View or edit staffing
View issue level access limits(Press Alt + Right arrow for more information)
Description
#11. Clone this repo
2. Run MainActivityTest
3. adb logcat "*:s,sqisland:i"
EXPECTED RESULT
onStart com.sqisland.android.espresso.hello.MainActivity@hash1
onStop com.sqisland.android.espresso.hello.MainActivity@hash1
onStart com.sqisland.android.espresso.hello.MainActivity@hash2
onStop com.sqisland.android.espresso.hello.MainActivity@hash2
ACTUAL RESULT
onStart com.sqisland.android.espresso.hello.MainActivity@hash1
onStart com.sqisland.android.espresso.hello.MainActivity@hash2
onStop com.sqisland.android.espresso.hello.MainActivity@hash1
onStop com.sqisland.android.espresso.hello.MainActivity@hash2
When there is a previous activity lingering, tests may fail because of leaked state. This leads to lots of confusion because the tests may pass when each test method is run on its own, but fails when the whole class is run.