Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Instrumentation Test in Mortar/Flow/Dagger 2 Project #182

@giolin

Description

@giolin

Hello, I am currently using Mortar/Flow/Dagger 2 libraries to build an app. And I found it very hard (almost impossible) to mock the module when doing instrumentation test. I can inject my own test components to Application and Activity after they are created. However, for each Screen's dependencies, there is no way to inject my own components.

I would like to know if there is any possibility to mock the module for the Screen(s) and how I can actually achieve that.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions