Run the android-testify tests annotated with @ScreenshotInstrumentation
on an emulator hosted by Bitrise and report the test results.
Features:
- Configures the emulator for optimal performance with Testify
- Runs Android Testify tests
- Save failed test images to the workflow Artifacts
- Prepares a JUnit XML test report which can be viewed with Bitrise Test Reports
Learn more at https://testify.dev
You must have an emulator configured and ready prior to invoking this step.
It is recommend that you follow this guide to create an emulator and wait for it to be booted.
You can also export the test results and failed images using an Export test results to Test Reports add-on Step and a Deploy to Bitrise.io Step to make the test results available in the Test Reports add-on.
The command-line statement to run with adb
The full path to the application apk under test. For library projects, this will be the test apk.
The package name of the app. For example, com.sample
The file name of the test runner .apk
The package name of test runner .apk
For example, com.sample.test
The fully qualified class name for the Instrumentation test runner. e.g. androidx.test.runner.AndroidJUnitRunner
The gradle project module name. For example, :app
You can enable the verbose log for easier debugging.
MIT License
Modified work copyright (c) 2022 ndtp
Original work copyright (c) 2021 Daniel Jette
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.