pedrovgs / Shot

Screenshot testing library for Android
Apache License 2.0
1.19k stars 116 forks source link

Test Run twice using version 6.0.0 #344

Closed AbdelrahmanTalat closed 1 year ago

AbdelrahmanTalat commented 1 year ago

Expected behaviour

When running my tests using version 6.0.0 the tests execute once

Actual behaviour

When running my tests using version 6.0.0 the tests execute twice and fail on the second run with the following error Test run failed to complete. Instrumentation run failed due to keyDispatchingTimedOut

this happens after the screenshots are saved

 :testing-application:localDebugExecuteScreenshotTests
💾  Saving screenshots.
😃  Screenshots recorded and saved
.....
:testing-application:connectedRemoteDebugAndroidTest // this runs and the tests fail afterward

Steps to reproduce

-- using version 6.0.0 -- AGP 8.1.1 -- run ./gradlew executeScreenshotTests -Precord

Version of the library

using version 6.0.0