mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00

This contains various revisions aimed at improving the automated tests for the Kiwix app. It's joint work between @ISNIT0 and me (Julian Harty). The main improvements are using Barista rather than plain Espresso tests. Minor additions are: * Added tests to ensure various activities start OK. These may be extended to enable us to test in additional languages and locales and confirm the activities have the resources they need. * Added code to cope with the Android Permission prompts at runtime. This enables the tests to run more reliably on devices rather than relying on a person to grant the permission or for the DownloadTest to have run (as it asked for permission in the code using the same technique used here). See https://github.com/kiwix/kiwix-android/issues/246 for more info. Here's a summary of the other tweaks: * Modified DownloadTest to be more stable and moved some logic into TestUtils * Fixed Java Warning * Updated getCurrentActivity * Slow progress on tests * Using Barista to help with testing * Updated idle timeout * updated menu clicker * Various new and improved tests * Added erroneously removed comments * removed unnecessary util * Changed download/network test timeout from 350 to 180 * Removed extraneous imports * tweak ContentTest * Fixed ContentTest * Changed import from espresso internal to guava * Formatting improvements in TestUtils * Updated screenshot method * Ammended testdroid.py * Updated TestUtils and DownloadTest * Added documentation * Updated sleeps and added more documentation * Fixed DownloadTest * Renamed simple tests * Improved DownloadTest * Minor tweaks to PR * Removed .vscode
56 lines
535 B
Plaintext
56 lines
535 B
Plaintext
### Android ###
|
|
# Built application files
|
|
*.apk
|
|
*.ap_
|
|
|
|
# Zim files
|
|
*.zim
|
|
|
|
# Native libraries
|
|
*.so
|
|
|
|
# Files for the Dalvik VM
|
|
*.dex
|
|
|
|
header.txt
|
|
app/header.bash
|
|
|
|
# Java class files
|
|
*.class
|
|
|
|
# Generated files
|
|
bin/
|
|
gen/
|
|
|
|
# Gradle files
|
|
.gradle/
|
|
build/
|
|
|
|
# Local configuration file (sdk path, etc)
|
|
local.properties
|
|
|
|
# Proguard folder generated by Eclipse
|
|
proguard/
|
|
|
|
# Log Files
|
|
*.log
|
|
|
|
### Android Patch ###
|
|
gen-external-apklibs
|
|
|
|
# IDE
|
|
.idea
|
|
.settings
|
|
*.iml
|
|
|
|
# Mac OS X
|
|
.DS_Store
|
|
|
|
ic_launcher_512_*.png
|
|
|
|
glassify
|
|
|
|
.project
|
|
.classpath
|
|
|
|
.vscode |