---
schema_version: "1"
id: de465e17132b4b4e672de0c28b9cfda3b53eb042f26ca146f86074307a2cf4dd
title: Run MUnit Coverage Reports in Anypoint Studio
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/munit/latest/coverage-studio-concept.md
canonical_url: https://docs.mulesoft.com/munit/latest/coverage-studio-concept
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 3f78544181f371fc20bdcece1108a2c2e903a32f3fa55f59da1a6d16c7e0d6f4
description: MuleSoft Documentation Site
release: "3.7"
latest: true
---
---
product: MUnit
version: 3.7
is-latest-version: true
---

# Run MUnit Coverage Reports in Anypoint Studio

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

![logo studio active](/mulesoft/current/en-us/_/img/icons/studio.svg "Anypoint Studio")Anypoint Studio

Run MUnit coverage reports in Anypoint Studio to see which flows and event processors your tests
cover. These configurations apply only when running MUnit tests in Studio, not from Maven in a CI/CD
environment.

## Enable Coverage Reports in Anypoint Studio

You can see which flows, and which percentage of event processors in those flows the test covers by
clicking on the Coverage button:

![MUnit Coverage tab highlighted in the MUnit section](/mulesoft/current/en-us/munit/latest/_images/using-munit-coverage-in-anypoint-studio.png)

The Overall Coverage value represents the percentage of the Mule application event processors that
the MUnit test executes.

You can click **Generate Report** to get the report that details the flows and event processors in
the Mule configuration files that are included in the MUnit test.

![Files included in the report highlighted](/mulesoft/current/en-us/munit/latest/_images/munit-coverage-report-in-anypoint-studio.png)

<table><colgroup><col> <col></colgroup><thead><tr><th>Column</th><th>Description</th></tr></thead><tbody><tr><td><div><div><p><strong>Resource</strong></p></div></div></td><td><div><div><p>Name of the Mule configuration file</p></div></div></td></tr><tr><td><div><div><p><strong>Containers</strong></p></div></div></td><td><div><div><p>Number of flows inside the Mule configuration file</p></div></div></td></tr><tr><td><div><div><p><strong>Weight</strong></p></div></div></td><td><div><div><p>Percentage of your application in a configuration file<br>A percentage of the overall number of event processors in the documentation and the number of event processors in the Mule configuration file</p></div></div></td></tr><tr><td><div><div><p><strong>Coverage</strong></p></div></div></td><td><div><div><p>Percentage of event processors in the Mule configuration file that the MUnit test executes</p></div></div></td></tr></tbody></table>

Additionally, you can click on each **Resource** to get a more specific and granular report of the
Event Processors executed in that resource:

![MUnit Coverage Report with the Granular report highlighted](/mulesoft/current/en-us/munit/latest/_images/munit-granular-coverage-report-in-anypoint-studio.png)

<table><colgroup><col> <col></colgroup><thead><tr><th>Column</th><th>Description</th></tr></thead><tbody><tr><td><div><div><p><strong>Name</strong></p></div></div></td><td><div><div><p>Name of the container</p></div></div></td></tr><tr><td><div><div><p><strong>Type</strong></p></div></div></td><td><div><div><p>Type of the container</p></div></div></td></tr><tr><td><div><div><p><strong>Covered Processors</strong></p></div></div></td><td><div><div><p>Processors inside the container that are executed during the MUnit test</p></div></div></td></tr><tr><td><div><div><p><strong>Processors</strong></p></div></div></td><td><div><div><p>Total amount of processors inside the container</p></div></div></td></tr><tr><td><div><div><p><strong>Coverage</strong></p></div></div></td><td><div><div><p>Percentage of the event processors inside the container executed in the MUnit test</p></div></div></td></tr></tbody></table>

## Disable Coverage Reports

If you choose so, you can disable the coverage calculation from your project run configuration so
you test your flow without a coverage report.

Right-click **Package Explorer** and choose **Run As** > **Run Configurations**. Select your MUnit
run configuration file to access your suite configuration, and deselect the **Run coverage** option
in your coverage settings.

![MUnit run and Run coverage highlighted](/mulesoft/current/en-us/munit/latest/_images/disable-munit-coverage-in-anypoint-studio.png)

## Exclude XML Files from MUnit Coverage Report

You can exclude one or more XML files from an MUnit Coverage report when testing your application.
For example, you can exclude a third-party XML file that does not comply with your quality standards
to improve your final report score.

1.  Go to the flow to change.

2.  Click **Run** > **Run Configuration**.

3.  Click the name of your project.

4.  In the **Ignored files** section, click **Add**.

    ![Add Ignored File window highlighted in the Test tab](/mulesoft/current/en-us/munit/latest/_images/add-ignored-files.png)

5.  Type the name of the XML file to exclude from the Coverage report and click **OK**.

6.  Click **Apply** and **Run**.

## See Also

- [MUnit Coverage Report](https://docs.mulesoft.com/munit/latest/munit-coverage-report)

- [Configure MUnit Coverage in Maven](https://docs.mulesoft.com/munit/latest/coverage-maven-concept)
