Skip to main content

Test Reports for React Native

The Appcircle Test Report step displays your test results and code coverage in an aesthetically pleasing user interface.

This component supports the following test and coverage formats:

  • JUnit - For Java-based test reporting.

For additional details, please refer to the document: Generating Test Report

Prerequisites

Before executing the Test Report workflow step, one of the following steps must be run to generate the report:

Prerequisite Workflow StepDescription
React Native Unit TestRun unit tests in your project to generate an junit-report.xml file containing the test outcomes.
React Native UI TestRun UI tests in your project to generate an e2e-report.xml file containing the test outcomes.
Prerequisites

To able to use the Test Report component, not necessary to use both test step React Native UI Test and React Native Unit Test at the same time. But if these test steps are included in the flow, they must be used before the Test Report component.

Input Variables

For each component, specific input variables are required for its operation on your system.

Variable NameDescriptionStatus
$AC_TEST_RESULT_PATHDefine the directory and its subdirectories for searching compatible test files.Required
$AC_COVERAGE_RESULT_PATHFor native iOS projects, tests automatically set this variable. For other projects, you must specify the coverage path manually.Optional
caution

To view the output artifacts on the Download Artifacts page, please ensure that the Export Build Artifacts step is included in your Workflow after this step.

Output Variables

The outputs resulting from the operation of this component are as follows:

Variable NameDescription
AC_TEST_REPORT_JSON_PATHSpecifies the path of the JSON report.

To access the source code of this component, please use the following link:

Preview of GitHub - appcircleio/appcircle-test-report-component: Appcircle Test Report Component