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

贡献者指南