android-best-practices icon indicating copy to clipboard operation
android-best-practices copied to clipboard

Update Testing Section

Open peter-tackage opened this issue 9 years ago • 2 comments

The testing section is out of date.

We should update it and address at least the following topics and tools:

  • Unit Testing using JUnit 4
  • Mocking, using Mockito
  • Assertions using AssertJ
  • Recommend not to use Roboletric for business logic testing
  • RxJava testing using TestScheduler and TestSubscriber
  • Patterns to improve testability
  • UI testings with Espresso
  • Unit testing structure best practices

peter-tackage avatar Jun 18 '16 12:06 peter-tackage

hey, I Also recommend to using hamcrest along with assertj android for more readable unit and instrumented tests.
there should be a best practices on instrumented tests reviewing how to test activites, services and application context.
I'm not aware if I can suggest more improvements for testing section or you just mind futurice developer's opinion. So please mention me if you want to get some more hints. tnx.

mehrdad-shokri avatar Jun 23 '16 19:06 mehrdad-shokri

there should be a best practices on instrumented tests reviewing how to test activites, services and application context. +1

wviana avatar Jun 24 '16 12:06 wviana