Skip to content

Instantly share code, notes, and snippets.

@marcosholgado
Created April 24, 2019 14:44
Show Gist options
  • Select an option

  • Save marcosholgado/9707d8a3ebe0f3734c3bf65e8f8d6de6 to your computer and use it in GitHub Desktop.

Select an option

Save marcosholgado/9707d8a3ebe0f3734c3bf65e8f8d6de6 to your computer and use it in GitHub Desktop.
class MyOtherLeakRunListener: FailTestOnLeakRunListener() {
override fun skipLeakDetectionReason(description: Description): String? {
return if(description.getAnnotation(LeakTest::class.java) != null)
null
else
"Skip Leak test"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment