d4rken-org/reddit-android-appstore

Wanted: Unit tests of all sorts

Open

#58 aberto em 19 de set. de 2016

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)Java (54 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (377 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

To test:

  • Presenter (e.g. lifecycle behavior and callbacks)
  • Data sources (e.g. caching behavior)
  • Parsers (e.g. correctly parsing and dealing with edge cases)

The tools of choice:

  • Mockito
  • Robolectric (if necessary)

Style:

  • Unit tests belong in src/test/...
  • Test classes should follow the package structure as the classes they want to test.
  • Test classes should have the same name as their test target, just postfixed with "Test".
  • Method names testMethodToTest for basic behavior and testMethodToTest_forSpecificCases

Guia do colaborador