To be able to make API requests over the network in a debug environment we must configure a couple of things:
Add the following line to the local.properties file:
BACKEND_API_URL=http://localhost:1337/api/user/
After starting the local android emulator type this command in the terminal:
adb reverse tcp:1337 tcp:1337
This will forward all requests made on port 1337 of the emulator to port 1337 of the local PC running the backend
./gradlew connectedAndroidTest
The output file will be located in the ./app/build/reports/coverage/androidTest/debug/connected/index.html directory
./gradlew connectedAndroidTest
./gradlew jacocoUnifiedTestReport
The output file will be located in the ./app/build/reports/jacoco/jacocoUnifiedTestReport/html/index.html directory