android - How to find Robolectric version at runtime? -
is there way retrieve robolectric's version @ runtime? environment under controlled library versioning , make sure run test if robolectric has specific version (for example, avoid runtime known issues it). example:
@test public void should_do_x() { if (robolectric.version >= supported_version) { //do //validate } }
Comments
Post a Comment