d4rken-org/reddit-android-appstore

Wanted: Unit tests of all sorts

Open

#58 建立於 2016年9月19日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Java (54 fork)github user discovery
enhancementhelp wanted

倉庫指標

Star
 (377 star)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南