

# Build results and the coverage report

**Note**  
The modernization build agent is in preview release for AWS Transform for mainframe and is subject to change.

Each build delivers a .zip file to your Amazon S3 bucket, under `transform-output/{{job-ID}}/build/`. The .zip file contains the following:
+ **Code** – The source code of the modernized application, and its tests. Code that implements a requirement carries a traceability annotation that names the requirement. Each test carries an annotation that names the requirements it verifies.
+ **Coverage report** – A report that accounts for every requirement in the scope of the build. The report is a set of HTML files, with `coverage-report.html` as the main page. The report also includes `coverage.json`, a machine-readable version of the same results.

To view the coverage report, download and extract the .zip file, and then open `coverage-report.html` in a web browser. You can't view the report in the AWS Transform web application.

**Topics**
+ [Contents of the coverage report](#transform-app-mainframe-build-agent-results-contents)
+ [Dispositions](#transform-app-mainframe-build-agent-results-dispositions)
+ [Trace a requirement back to the mainframe code](#transform-app-mainframe-build-agent-results-trace)
+ [Next steps](#transform-app-mainframe-build-agent-results-next)

## Contents of the coverage report
<a name="transform-app-mainframe-build-agent-results-contents"></a>

The report header shows the job ID and the date and time that the report was generated. The report then contains the following sections.

**Aggregate coverage**
+ **Requirements** – The number of requirements in the scope of the build, the percentage implemented, the percentage tested, and a breakdown by disposition.
+ **Modernized code** – The number of source files, total lines of code, and number of test files.

**Detailed coverage**

You can view the detailed coverage in three ways:
+ **By business function** – Expand a business function to see its requirements. For each requirement, the report shows its disposition, the code that implements it, and the tests for it.
+ **By file** – The same results, listed by file. Choose a file to open its detail page, and then choose a requirement to see the code that implements it.
+ **Code explorer** – The modernized codebase as a folder tree, with the number of requirements in each folder and file.

## Dispositions
<a name="transform-app-mainframe-build-agent-results-dispositions"></a>

The report assigns every requirement in the scope of the build exactly one of the following dispositions.


| Disposition | Meaning | 
| --- | --- | 
| Implemented and tested | Code that implements the requirement carries its annotation, and the code has a test. | 
| Implemented but not tested | Code that implements the requirement carries its annotation, but the code has no test. | 
| Not implemented | No code carries an annotation for the requirement. | 

Requirements that the build routes to your team as decisions are marked in the report.

## Trace a requirement back to the mainframe code
<a name="transform-app-mainframe-build-agent-results-trace"></a>

The build coverage report links each requirement to the modernized code. To trace a requirement back to the mainframe code that it came from, use the requirements coverage report. Together, the two reports trace each requirement from the mainframe source lines to the modernized code. For more information, see [Review the requirements coverage report](transform-app-mainframe-workflow.md#transform-app-mainframe-workflow-requirements-coverage-report).

Requirement IDs are unique within a business function, so look up a requirement by its business function and ID together.

**To review the build results**

1. Download the build .zip file from your Amazon S3 bucket, extract it, and open `coverage-report.html` in a web browser.

1. In **Aggregate coverage**, check for requirements that are **Not implemented** or **Implemented but not tested**.

1. Review the requirements that the build routed to your team as decisions, and decide how to handle them.

1. For the business functions that your team knows best, choose requirements and review the code and the tests that cover them.

1. Run the tests in your own environment.

## Next steps
<a name="transform-app-mainframe-build-agent-results-next"></a>

The build agent doesn't deploy the application. After you review the results, you deploy the modernized application in your environment. Before cutover, run the new application alongside your mainframe application and compare the results. For more information, see [How the build fits with your other checks](transform-app-mainframe-build-agent.md#transform-app-mainframe-build-agent-checks).