Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Disable strictmode and leak canary for CI testing #6277

Closed
tobrun opened this issue Sep 7, 2016 · 2 comments · Fixed by #6294
Closed

Disable strictmode and leak canary for CI testing #6277

tobrun opened this issue Sep 7, 2016 · 2 comments · Fixed by #6294
Labels
Android Mapbox Maps SDK for Android tests

Comments

@tobrun
Copy link
Member

tobrun commented Sep 7, 2016

We are using both LeakCanary and Strict mode to make our code more robust but these tools interfere with our automated tests on CI. We need to look into disabling these during tests.

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Sep 7, 2016
@tobrun
Copy link
Member Author

tobrun commented Sep 8, 2016

From square/leakcanary#143:
The following configuration should disable LeakCanary during instrumentation tests:

    androidTestCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta'
    debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4-beta1'
    releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta1'

@tobrun
Copy link
Member Author

tobrun commented Sep 8, 2016

Regarding Strictmode, I'm unable to find a clean solution to detect if code is executed as part of a instrumentation test. Going to proceed with LeakCanary fix from above.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants