levibostian / AndroidBlanky

Create a new Android app fast. Comes pre-installed with libraries you already use.
7 stars 0 forks source link

Fix unit tests. #25

Closed levibostian closed 6 years ago

levibostian commented 7 years ago

I have some broken unit tests. The code seems to work great, it's the tests that are failing. I need to spend the few minutes to fix them.

levibostian commented 7 years ago

Specifically, Repository code is broken. If I could make reuseable functions or extensions in the test class that would be useful. I have a lot of copy/paste right now which is resulting in broken tests.

For example: mocking RealmResults lists. It's a solved problem in my tests, but I forget to paste it in some of the @Test functions. I need to make that reuseable.

levibostian commented 6 years ago

I removed Realm and went to Room in the new release. This will improve the tests.