Speed up compilation with mockito on Android
Posted
by pbreault
on Stack Overflow
See other posts from Stack Overflow
or by pbreault
Published on 2010-05-02T16:08:15Z
Indexed on
2010/05/02
16:18 UTC
Read the original article
Hit count: 386
I am currently developing an android app in eclipse using:
- One project for the app
- One project for the tests (Instrumentation and Pojo tests)
In the test project, I am importing the mockito library for standard POJO testing. However, when I import the library, the compilation time skyrockets from 1 second to about 30 seconds in eclipse. The cause seems to be that the whole library is converted each time. So basically, each time a make a modification that I want to test, I have to wait 30 seconds.
The only workarounds that I have found so far would be:
- Disable "Build Automatically"
- Create a project that includes only pojo tests and put mockito only there.
- Use another library that compiles faster (e.g. easymock)
Any other suggestion?
© Stack Overflow or respective owner