lundi 4 mai 2020

How to manage tests in the multi-module Android app

I'm curious where do you keep tests, especially instrumented test in multi-module architected apps?

Do you create a separate module for tests or keep them in the app module altogether. I'm practising how tests can be represented in multi-module apps, in a single module app, everything looks straightforward.

For instance: if you have Test Suite which includes all major instrumented tests to test against the different flow, where do you keep those tests? - As I mentioned in the app OR in separate modules under their source code and invoke specific tests for an individual module?

if that's so, how do you create a whole test suite and what about CustomRunners? I need Dagger in tests so I need some kind of initial TestComponent and TestApplication to have as well.

Share your experience, please

Thanks in advance!

Aucun commentaire:

Enregistrer un commentaire