JakeWharton / u2020

A sample Android app which showcases advanced usage of Dagger among other open source libraries.
https://www.youtube.com/watch?v=0XHx9jtxIxU
Apache License 2.0
5.68k stars 930 forks source link

Create unit testing examples #7

Closed christopherperry closed 10 years ago

christopherperry commented 10 years ago

I'd love to see some unit testing examples for things like Activity and Fragment classes.

JakeWharton commented 10 years ago

Gradle does not have the concept of unit tests. I may add instrumentation tests later but those will just run in mock mode using the normal mechanism for enabling it (a preference).

christopherperry commented 10 years ago

Gradle does not have the concept of unit tests.

oooohnooo

What project should I be requesting this on then, Dagger or Robolectric?

JakeWharton commented 10 years ago

I meant the Gradle Android plugin.

I don't think either project is going to responsible for anything like this since it's highly subjective. It's a combination of Android, Dagger, and Robolectric as well as whatever technique you are using for injection and writing tests. It sounds more like a blog post someone should write or a StackOverflow question.