SimonJinaphant / Discovr

A personalized UBC companion app
0 stars 2 forks source link

Test: Investigate Robolectric #112

Closed ValRat closed 7 years ago

ValRat commented 7 years ago

Robolectric allows you to run tests normally only runnable on an actual android device or on an emulator on your computer. This is because they created a mock for all (almost) classes native to the android API, which means they are implemented and will not throw Stub errors when normally trying to debug JUnit tests with Android code.

ValRat commented 7 years ago

Currently having issues with instantiating MainActivity (and all the fragments dependent on it). Robolectric doesn't seem to find our AndroidManifest.xml file and thus throws error about the Mapbox telemetry dependency.

ValRat commented 7 years ago

Closed with PR #130