workflow-kotlin icon indicating copy to clipboard operation
workflow-kotlin copied to clipboard

Make LeakCanary more strict

Open rjrjr opened this issue 3 years ago • 1 comments
trafficstars

Reported by @pyricau: At the moment we are only checking for leaks after the activity is destroyed, which means there is a huge window we're missing. We should check before that as well:

@get:Rule val rules = RuleChain.outerRule(DetectLeaksAfterTestSuccess()).around(scenarioRule).around(DetectLeaksAfterTestSuccess())!!

rjrjr avatar Feb 02 '22 18:02 rjrjr

This makes we wonder if there's a clever API we can have that says "do this both inside and outside this chain of rules"

pyricau avatar Feb 02 '22 18:02 pyricau