question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

run adb command after Espresso test (feature request ?)

See original GitHub issue

First of all, thank you for the action.

For example

  - name: Android Emulator test
    uses: ReactiveCircus/android-emulator-runner@v2.8.0
    with:
      api-level: 28
      disable-animations: true
      arch: x86_64
      profile: Nexus 6
      script: ./gradlew cAT

Sometimes a process crashes

Starting 0 tests on test(AVD) - 9 Tests on test(AVD) - 9 failed: Instrumentation run failed due to ‘Process crashed.’

and I want to upload output of adb logcat , especial on a crash.

Does someone has a clue, how to do this ? Or is this a simple feature request to run a custom command after action ?

Thank you

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
hannesa2commented, May 24, 2020

Just for the records, this is the final way I go without color noise

      script: |
        adb logcat -c
        adb logcat *:E &
        ./gradlew cAT

Thank you !

0reactions
ychescale9commented, May 24, 2020

I’m going to close this issue now. Please feel free to re-open or create another one if you run into other issues 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kaspresso and ADB server. Hello everyone! - ProAndroidDev
The Run tests command is received from the computer via ADB. The application and the Test APK communicate with each other. As we...
Read more >
Send emulator console commands during Espresso test
You can try InstrumentationRegistry.getInstrumentation().getUiAutomation() .executeShellCommand("dumpsys battery set level 30");.
Read more >
Useful ADB Commands For Android Testing - TestProject
A tutorial on several ADB commands to improve your productivity when developing or testing Android apps manually or automatically.
Read more >
Android Debug Bridge (adb) - Android Developers
Android Debug Bridge ( adb ) is a versatile command-line tool that lets you communicate with a device. The adb command facilitates a...
Read more >
Run specific Android Espresso tests by creating custom ...
Android framework provides many command line to filter tests while using adb shell am instrument . But if we want to run automation...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found