Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only works for Android 5.1 #20

Open
tomatobrown opened this issue Jun 27, 2017 · 3 comments
Open

Only works for Android 5.1 #20

tomatobrown opened this issue Jun 27, 2017 · 3 comments

Comments

@tomatobrown
Copy link

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`

@sebaslogen
Copy link
Owner

The problem is the reporting folder: use the previous to last commit 6d1abf0

I tried on emulators with Android v25 and 26 (both Pixel XL) and it works.

@tibmanus
Copy link

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?

@sebaslogen
Copy link
Owner

sebaslogen commented Mar 24, 2018

@tibmanus Try using the same reports folder also in the gradle task that pulls the reports from the device:

['adb', 'pull', '/mnt/sdcard/cucumber-reports/', reportDir.getAbsolutePath()])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants