ericcornelissen / NervousFish

An app for your :iphone: to exchange public-keys in a secure manner.
GNU Lesser General Public License v3.0
2 stars 4 forks source link

Update androidTests to use non-deprecated API #163

Closed ericcornelissen closed 7 years ago

ericcornelissen commented 7 years ago

What

This PR updates the androidTest test suites to move away from the deprecated ActivityInstrumentationTestCase2 and use the @Rule ActivityTestRule instead.

Why

This Pull Request is needed because we don't want to use deprecated APIs. Also, using this newer API should reduce the number of invalid failing Travis builds as it loads Activities more efficiently (but I can't promise anything 😄)

How

This feature can be viewed/tested within the project by running the androidTests on an emulator or mobile phone and see that they still work.

Alternative implementation

None

Notes

The Bluetooth/connection steps have been removed due to complications with the having to enable Bluetooth in order for these tests to run properly, also they don't provide any additional coverage as the Bluetooth classes are excluded from the coverage report.