mardi 23 janvier 2018

Robolectric load resources from another module

I have the following situation: Testing an activity that inflates one Fragment (in the XML) that itself extends another base fragment which is located in another module. So the Robolectric successfully finds the current module's resources but fails with the base fragment...

This is the project's structure:

PROJECT
-- Module 1
---- Tests_Dir
-- Module 2

Is there a way to add multiple packages in the Robolectric config or somehow mock the fragment?

Aucun commentaire:

Enregistrer un commentaire