Very interesting article! I was wondering if there is a way to choose later *where* to run tests, if locally (with Robolectric) or on a device/emulator. Since the test itself doesn’t look like needing to use a specific Runner for Robolectric, it would be nice to have a way to decide where to run the tests based on external variables, would that be possible? Thanks!
Ehy Dylan! Yes, Store can do that. By implementing the Persister interface (or the AllPersister, based on what you need to do), you can save it where you want. For what concerns the fetching, you can achieve the behaviour you need by implementing the Fetcher interface. Feel free to reach out if needed!
At the moment, we’re using it just for running the test at every commit. Since it was quite complicated set it up and make everything run properly, I shared this first part, but I’m still looking on how (and actually where) to upload the artifact! Thinks for pointing out, I will update the article with the new findings.
Hello! Actually, I don’t think we have to, it’s just needed in case you want to access that annotation with reflection later and, since on the guide is set explicitly, I did not want to diverge too much and create confusion.