Yes, this is the setup time. Unfortunately, there is no central place where you can collect all the information about Robolectric .
Watch this presentation and you will find more explanations on pages 28, 29, 30, 35.
If you're interested, Robolectric changed some approaches in version 2.0. Significant changes:
Javaassist use replaced by ASM use - to speed up startup time- They are trying to reduce the number of shadow classes and use the ASOP Android code instead - for better reliability of the test
If you are using gradle , also look at the robolectric gradle plugin . Added current tests are parallel and other settings. Passing tests in parallel, apparently, are useful only with a large number of tests (hundreds +)
Eugen martynov
source share