I assume that the reason most people use Robolectric is using Maven because most people who try to use Roboelectric take their testing seriously.
Given that they are motivated to make serious efforts in testing, they are likely to want to include their tests in an automatic assembly, usually on a continuous integration (CI) server such as Jenkins or Hudson.
If you want to do automated testing, you need a good build on the command line. Gradle is the new official command line building tool for Android, but, being completely new, is still under development and has not yet received wide distribution. A proven tool is Maven.
Many love to hate Maven, but he does his job and hits Ant for a mile.
Thus, it may not be a bad idea to use Maven (or Gradle) - it will give you a much better chance for your testing than just running your tests in your IDE.
GrayBeardedGeek
source share