I'm working on Android code that includes a differentiation between two Android versions.
I wrote tests to run the code. I'm using Robolectric.
I found a SO answer that says how to configure the version that Robolectric uses for running the test:
Does Robolectric support API level?
But that way I'd have to copy the test and use different annotations (or rather have the test code in a private method and create two new public test methods that call the private method - but I've already got hundreds of tests, so this would be lots of work).
Is there any way to tell Robolectric to run a test twice, with different Android versions for each run?