{"id":20568109,"url":"https://github.com/asadmansr/android-test-report-action","last_synced_at":"2025-04-14T15:53:35.942Z","repository":{"id":65155346,"uuid":"213046061","full_name":"asadmansr/android-test-report-action","owner":"asadmansr","description":"GitHub Action that prints Android test reports.","archived":false,"fork":false,"pushed_at":"2022-10-18T22:31:53.000Z","size":310,"stargazers_count":39,"open_issues_count":7,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T04:41:45.596Z","etag":null,"topics":["android","github-actions"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/android-test-report-action","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asadmansr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-05T17:56:53.000Z","updated_at":"2024-10-25T01:56:37.000Z","dependencies_parsed_at":"2023-01-05T13:18:08.477Z","dependency_job_id":null,"html_url":"https://github.com/asadmansr/android-test-report-action","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"b4f13494c5a25bb3045ff911b3f1479d9da27619"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asadmansr%2Fandroid-test-report-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asadmansr%2Fandroid-test-report-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asadmansr%2Fandroid-test-report-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asadmansr%2Fandroid-test-report-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asadmansr","download_url":"https://codeload.github.com/asadmansr/android-test-report-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647273,"owners_count":21139086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","github-actions"],"created_at":"2024-11-16T04:49:21.568Z","updated_at":"2025-04-14T15:53:35.907Z","avatar_url":"https://github.com/asadmansr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android Test Report Action\n\n[![Release](https://img.shields.io/github/release/asadmansr/android-test-report-action.svg)](https://github.com/asadmansr/android-test-report-action/releases)\n[![Marketplace](https://img.shields.io/badge/GitHub-Marketplace-orange.svg)](https://github.com/marketplace/actions/android-test-report-action)\n\nGitHub Action that prints Android test xml reports.\n\n![action](./images/promo.png)\n\n\u003cbr\u003e\n\n## Getting Started\n\nAdd the following action to your GitHub Actions workflow.\n\n```yml\n- name: Android Test Report\n  uses: asadmansr/android-test-report-action@v1.2.0\n```\n\n\u003cbr\u003e\n\n## Usage\n\n### Basic\n\nOnce the test command has been executed, the Android Test Report action will parse all of the XML reports and output the results in a structured way.\n\n```yml\nname: Android CI\non: [push]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v1\n\n      - name: set up JDK 1.8\n        uses: actions/setup-java@v1\n        with:\n          java-version: 1.8\n\n      # Execute unit tests\n      - name: Unit Test\n        run: ./gradlew testDebugUnitTest\n\n      - name: Android Test Report\n        uses: asadmansr/android-test-report-action@v1.2.0\n        if: ${{ always() }} # IMPORTANT: run Android Test Report regardless\n```\n#### Note\nThe workflow must contain the unit test job prior to running the Android Test Report action. **The action will automatically pass or fail the job depending on the test results.**\n\n\u003cbr\u003e\n\n### Alternate\n\nIf the basic usage fails to meet your requirement (running on MacOS machine or anything else), split the test and report into two jobs. The test job will run the tests and save the reports as artifacts. The report job will use the Android Test Report action to parse and print the results. Consider the following example below.\n\n```yml\njobs:\n  test:\n    runs-on: macos-latest # or any other machine\n    steps:\n      ...\n      - name: Unit Test\n        run: ./gradlew testDebugUnitTest\n\n      - name: Upload Test Reports Folder\n        uses: actions/upload-artifact@v2\n        if: ${{ always() }} # IMPORTANT: Upload reports regardless of status\n        with:\n          name: reports\n          path: app/build/test-results # path to where the xml test results are stored\n        \n  report:\n    runs-on: ubuntu-latest\n    needs: test # The report job will run after test job\n    if: ${{ always() }} # IMPORTANT: Execute report job regardless of status\n    steps:\n      - name: Download Test Reports Folder\n        uses: actions/download-artifact@v2\n        with:\n          name: reports\n\n      - name: Android Test Report\n        uses: asadmansr/android-test-report-action@v1.2.0\n```\n\n\u003cbr\u003e\n\n## Output\n\n![action](./images/output.png)\n\n\u003cbr\u003e\n\n## Sample Project\n\nTo learn how to use this action in an Android application, check out the following example repository:\nhttps://github.com/asadmansr/android-test-report-action-example\n\n- master branch: Passed pipeline as all the tests passed\n- failed-pipeline branch: Failed pipeline as some of the tests failed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasadmansr%2Fandroid-test-report-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasadmansr%2Fandroid-test-report-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasadmansr%2Fandroid-test-report-action/lists"}