README.md revision 76e306183bb8c3935c091a558690edc310edbd70
2115N/A#Running tests
2362N/AIn order to run the tests, run the following command:
2115N/A
2115N/A./gradlew generateCoverage
2115N/A
2115N/AThis will both run the unit tests, and generate a coverage report.
2115N/A
2115N/AThe unit test report is located at:
2115N/A{baseFolder}/app/build/reports/tests/debug/index.html
2115N/A
2115N/AThe coverage report is located at:
2115N/A{baseFolder}/app/build/reports/jacoco/generateCoverage/html/index.html
2115N/A
2115N/ANote that the coverage report will not be generated if there are any test failures.
2115N/A
2115N/AThe target is to have a large coverage for non android classes (e.g. non ui and database classes)
2115N/A
2115N/A# Instrumentation tests
2362N/A
2362N/ATo run the instrumentation tests, first connect and unlock the test devices, or start emulators.
2362N/AThen, run: ./gradlew spoon
2115N/AThe report for this should appear in :
2115N/A{baseFolder}/app/build/spoon/debug/index.html
2115N/A
2115N/A