jeudi 24 septembre 2015

How do you share code between androidTest and test?

I have both unit tests in src/test and functional tests in src/androidTest. I have a few test util classes that I use to create mock models and I'd like to use in both test and androidTest. However, I don't know how to archieve this without putting these classes in /src/main or duplicating them for each test variant.

Does anyone know a good approach to share code between both?

Aucun commentaire:

Enregistrer un commentaire