Skip to content

Support for Instrumented tests #19

@eugenio1590

Description

@eugenio1590

I am using this docker to run the unit tests in an android project. It is worked very well. But I need support to run the expresso tests with that docker.

Currently, I have three steps for doing it:

  1. Install KVM (I am not sure about this steps)
- apt-get --quiet install --yes libx11-dev libpulse0 libgl1 libnss3 libxcomposite-dev libxcursor1 libasound2
- apt-get --quiet install --yes qemu-kvm libvirt-daemon-system libvirt-dev libvirt-clients virtinst bridge-utils
  1. Get the android-wait-for-emulator
- wget --quiet --output-document=android-wait-for-emulator https://raw.githubusercontent.com/travis-ci/travis-cookbooks/0f497eb71291b52a703143c5cd63a217c8766dc9/community-cookbooks/android-sdk/files/default/android-wait-for-emulator
- chmod +x android-wait-for-emulator
  1. Create the emulator and wait for it to be ready to run the tests.
- echo no | android-sdk-linux/tools/bin/avdmanager create avd -n test -k "system-images;android-${ANDROID_EMULATOR_VERSION};google_apis;x86"
- android-sdk-linux/emulator/emulator -avd test -accel auto -gpu auto -no-window -no-audio &
- ./android-wait-for-emulator
- adb shell input keyevent 82

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions