NightscoutFoundation / xDrip

Nightscout version of xDrip+
https://jamorham.github.io/#xdrip-plus
GNU General Public License v3.0
1.41k stars 1.15k forks source link

migrate Espresso test to Android X #3520

Closed tolot27 closed 5 months ago

tolot27 commented 5 months ago

During compilation of the debug app missing libraries are shown in HomeEspressoTest.java because this test was not migrated (74a4f02) to the androidx libraries. This was also mentioned in #3255. This PR migrates this Espresso test to androidx. Still not all tests are passing, but many. Upgrading the libraries to newer ones will break even the first test. But this is out of scope for this PR.

tolot27 commented 5 months ago

By the way, the test is still failing. Will this address with another PR.

jamorham commented 5 months ago

Am I right in understanding that this test now will run but then fails?

tolot27 commented 5 months ago

Am I right in understanding that this test now will run but then fails?

Yes, the Espresso tests are is running but most of the time at least two of the four tests fail because the GUI interaction is not correct (mostly caused by incorrect scrolling). This can be fixed in other PRs. My main intend was to fix the build errors and do some cleanup.