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.
Relevant Issues: #77
Related Pull Requests: -
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.