I am working in a module that provide some needed fragments which will be used in Activity from the app module. Therefore, I need to do some UI test and also need to test the fragments view models. There will be also End to End test in the app module, but I want to do unit and UI test inside my module too. Should I create a Dummy Activity, please provide me an example to learn and follow.
Depending on your situation,
FragmentScenario may be sufficient. It uses a library-supplied generic activity for use in testing a fragment.
Sorry, but I do not have anything available for you.