Back to Byte Buddy

README

byte-buddy-gradle-plugin/android-plugin-test/README.md

latest930 B
Original Source

How to run the tests

Environment setup

  • The environment var ANDROID_HOME must be set and pointing to the Android SDK dir.
  • Java 11 is required, more info here.
  • There must be an Android device connected through ADB, either a running Emulator or a real device plugged in with USB debugging enabled.

Steps

  • Build Byte Buddy alongside the Byte Buddy Gradle plugin.
  • Located in the root dir of this test project, run the following command: dir: ./gradlew connectedAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=net.bytebuddy.android.test.ByteBuddyInstrumentedTest
  • Optionally, you can also open up this test project with Android Studio, open up the test class and run it through the IDE.