d4rken-org/reddit-android-appstore

Wanted: Unit tests of all sorts

Open

#58 geöffnet am 19. Sept. 2016

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (54 Forks)github user discovery
enhancementhelp wanted

Repository-Metriken

Stars
 (377 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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

Contributor Guide