Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Leakcanary makes test always pass when using android-test 1.3.1-alpha02 #1986
Comments
|
I suggest to make |
|
@pyricau unless this proposal is considered too defensive and this state isn't expected when executing Is it something possible to have |
|
@pyricau do you have a recipe somewhere to use |
|
The real issue causing trouble is the following exception, not
I protected such error and the test is now correctly marked as failed as expected. I'll push a PR with my changes even if I don't think it will be the end of the story. |
…TestOnLeakRunListener .testResultPublisher` (relates to square#1986) This seems to be the cause of square#1986 but even without this fix, the issue example worked by fixing the root cause of this issue.
…Listener` field (fixes square#1986) Such field might be missing, observed with `android-test 1.3.1-alpha02` at least.
|
It seems this commit android/android-test/e998fe63c1870e79548d2b6386db81ca07010c5c introduced the issue.
|
|
Catching up, sorry it took me so long to take a look. |
The LeakCanary example app has UI tests that fail (and don't run on CI). You could add a test there (and update the espresso version temporarily). Based on what you're telling me, it sounds like we need a two different impls. We could check for whether the |


Description
When using leakcanary with android-test 1.3.1-alpha02 ui test suite always pass.😞
Using alpha version is required due to android/android-test#743 but in case when it gets into stable release more people will face the issue
Steps to Reproduce
Sample project that has test suite passing despite it shouldn't
mateuszkwiecinski/orchestrator_doesnt_work#7
The repository contains simple ui tests setup with orchestrator and leakcananry enabled
Expected behavior: I expect to see test failure and have failing workflow (the test
shouldFailshould fail)Version Information
Additional Information
When looking at logcat it points at leakcanary: