Just tried writing a test using robolectric, but realized that the version we have only supports lollipop (I needed LOLLIPOP_MR1 and preferably M).
So I had to fall back to using a normal Android test, which made me a little sad. Would be awesome to port it back to Robolectric at some point.
Got Robolectric 3.2 building locally. Needs way more changes than I initially thought.
We will need to also add the third_party library Xstream and also update third_party/guava and third_party/accessibility-test-framework libraries.
We will also need Java 1.8 on our bots before we upgrade.
ok, should be fixed assuming CL sticks.
Can now write Robolectric tests with N-MR1 Android code. Also, Robolectric 3.2 has some slick features (like being able to run same test against multiple SDK levels, and more)
Comment 1 by jbudorick@chromium.org
, Feb 17 2017