{"repo":"linkedin/dex-test-parser","free":true,"listed":false,"github":"https://github.com/linkedin/dex-test-parser","clone":"git clone https://github.com/linkedin/dex-test-parser.git","description":"Find all test methods in an Android instrumentation APK","language":"Kotlin","stars":108,"topics":["android","android-library","testing","test-framework","dex","linkedin"],"license":"BSD-2-Clause","category":"mobile-apps","readme_excerpt":"Dex Test Parser Motivation dex-test-parser was inspired by the Google presentation \"Going Green: Cleaning up the Toxic Mobile Environment\". What does it do? Given an Android instrumentation apk, dex-test-parser will parse the apk's dex files and return the fully qualified method names of all JUnit 3 and JUnit 4 test methods. Of course, you could also collect this list of method names from inside your test code by scanning the apk internally and using reflection. However, there are several reasons you may not want to do this: Scanning the app's classpath for test methods at runtime causes any static initializers in the classes to be run immediately, which can lead to tests that behave differently than production code. You might want to run one invocation of the adb shell am instrument command for each test to avoid shared state between tests and so that if one test crashes, other tests are still run. Download Download the latest .jar via Maven: or Gradle: or you can manually download the jar from Bintray. Getting Started dex-test-parser provides a single public method that you can call from Java to get all test method names. Variable customAnnotations is a list of custom tags that marks tests if you are using custom test runner for your tests. You can also use the jar directly from the command line if you prefer. This will create a file called AllTests.txt in the specified output directory. If \"path/for/output\" is omitted, the output will be printed into stdout. If you have cu","default_branch":null,"files":null,"tree":[],"storefront":"/r/linkedin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/linkedin/dex-test-parser/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}