CleanGUITestArchitecture
CleanGUITestArchitecture copied to clipboard
Only works for Android 5.1
When running these tests against Android 6.0(emulator) or greater. However this project works great out of the box against 5.1
`Starting 0 tests on Pixel_XL_API_26(AVD) - 8.0.0 Tests on Pixel_XL_API_26(AVD) - 8.0.0 failed: Instrumentation run failed due to 'Process crashed.'
com.android.builder.testing.ConnectedDevice > No tests found.[Pixel_XL_API_26(AVD) - 8.0.0] FAILED No tests found. This usually means that your test classes are not in the form that your test runner expects (e.g. don't inherit from TestCase or lack @Test annotations). :app:connectedDebugAndroidTest FAILED`
The problem is the reporting folder: use the previous to last commit https://github.com/sebaslogen/CleanGUITestArchitecture/commit/6d1abf0bc869c9a1eacaecd6634a44bd476fceb4
I tried on emulators with Android v25 and 26 (both Pixel XL) and it works.
I experience the same error message 'Process crashed.' In logcat I see that Cucumber crashes at its init phase, as it doesn't have the necessary permissions to create the cucumber-report folder. If I try with /data/data/
as suggested, then the test reports won't get pulled at the end (I see an empty directory). (I saw you mentioning somewhere else that the test reports are already deleted by then.)
Would be curious what would be your suggested location for the test reports, or alternatively how to give write permissions to the package before Cucumber is started?
@tibmanus Try using the same reports folder also in the gradle task that pulls the reports from the device: https://github.com/sebaslogen/CleanGUITestArchitecture/blob/a9da908cca5d4ac2639d58e7003dfe0531b64378/app/build.gradle#L43