mirror of
https://github.com/hmalik144/Driver.git
synced 2026-10-31 19:04:07 +00:00
- lint checks
This commit is contained in:
1 parent
b75bab5deb
commit
26136aeb24
33 files changed
+18
-994
No files matched your search
@@ -1,23 +0,0 @@
|
||||
package h_mal.appttude.com.driver.helpers
|
||||
|
||||
import android.content.Context
|
||||
import android.view.View
|
||||
import androidx.test.espresso.FailureHandler
|
||||
import androidx.test.espresso.base.DefaultFailureHandler
|
||||
import org.hamcrest.Matcher
|
||||
import tools.fastlane.screengrab.Screengrab
|
||||
|
||||
|
||||
class CustomFailureHandler(targetContext: Context) : FailureHandler {
|
||||
private val delegate: FailureHandler
|
||||
|
||||
init {
|
||||
delegate = DefaultFailureHandler(targetContext)
|
||||
}
|
||||
|
||||
override fun handle(error: Throwable, viewMatcher: Matcher<View>) {
|
||||
delegate.handle(error, viewMatcher)
|
||||
// Catch a screenshot on failure
|
||||
Screengrab.screenshot("error")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user