artem-zinnatullin / android-wail-app

DEPRECATED Android Last.fm scrobbler. Recruiters: please don't look at this project.
MIT License
121 stars 36 forks source link

Investigate and fix test execution on Travis CI #70

Open ilya-murzinov opened 9 years ago

ilya-murzinov commented 9 years ago

@artem-zinnatullin:

I think it's a problem of test environment, Travis CI gives not so much memory to the test containers, as I understand, tests run in their own gradle sub-process (which works with emulator) and this process just can not start properly because of not enough memory

I never saw this on my own machines, but I had same problem on my Jenkins, I spend some time on investigations, used gradle logging options like --stacktrace and found OutOfMemoryError in test sub-process, I fixed it by adding more memory to the VM (via swap space).

We should think about switching to mock Android test environment instead of running slow emulator (no robolectric please, unfortunately, it's not so stable and new official one is coming), @JakeWharton tweeted about that https://twitter.com/JakeWharton/status/546099825406509056