Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Wanted: Unit tests of all sorts #58

Open
d4rken opened this issue Sep 19, 2016 · 0 comments
Open

Wanted: Unit tests of all sorts #58

d4rken opened this issue Sep 19, 2016 · 0 comments

Comments

@d4rken
Copy link
Member

d4rken commented Sep 19, 2016

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants