This Step is used to search for test results and export them for the Deploy to Bitrise.io Step which can export the results to the Test Reports.
Not all testing Steps automatically export their results to the Test Reports. This Step is designed to export the results of those Steps that do not do this automatically. The Step creates the required test-info.json file and deploys the test results in the correct directory for export.
To use this Step to export the results of a testing Step - for example, Flutter Test -, you need to make sure that:
In the The name of the test input, set the name you want to see in the Test Reports. Each exported results file has a separate tab with the name defined here.
In the Test result base path input, set the path where your test results can be found.
This input determines where Bitrise will look for your test results. We recommend setting a folder here, though you can also set a specific file path.
In the Test result search pattern input, set a glob pattern that matches a single test result output file.
This search pattern is used to search every file and folder of the provided base path which was set in the Test result base path input. If there is more than one match, you will receive a warning and the Step will export the first match.
If you set a specific file path in the previous input, just set * here.
In the Step's test result directory input, make sure the path points to a valid directory.
By default, do NOT modify this input’s value. It should be set to the $BITRISE_TEST_RESULT_DIR Env Var.
Make sure you have a Deploy to Bitrise.io Step in your Workflow. This step is responsible for deploying the exported files from the test result directory to the Test Reports.
You always need a Deploy to Bitrise.io Step in your Workflow to export test results to the Test Reports. If you can't see your results in Test Reports, check that you have the Step in your Workflow.
If more than one file matches the pattern set in the Test result search pattern input, you will receive a warning. It should only match a single file in the base path.
If either the Test result base path input or the Test result search pattern input isn't set correctly or if either is left empty, the Step will fail.
Test reports Exporting custom tests to test reports