# Unit Test Coverage Troubleshooting

<figure><img src="https://4057366433-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAjqTCMRYvHhDgsdPLUnc%2Fuploads%2FDXtoSYax2CTRxwggoUCO%2FUT-No-Coverage%20(1).png?alt=media&#x26;token=ef21b515-3bfc-4882-a090-4cf22388ef6a" alt="" width="563"><figcaption></figcaption></figure>

## Verify Build data reported <a href="#verify-build-data-reported" id="verify-build-data-reported"></a>

Under Cockpit > Build Monitor, check if the overall Build information is correct e.g. the expected number of modules and methods reported. If not, check the Sealights `packagesIncluded` and `packagesExcluded` arguments.

<figure><img src="https://4057366433-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAjqTCMRYvHhDgsdPLUnc%2Fuploads%2FEO0hlMUdo0kFCBbwKC9K%2FScreen%20Shot%202020-11-18%20at%203.21.47%20PM.png?alt=media&#x26;token=5e9c08aa-4351-4523-a920-3e96d981fe1a" alt=""><figcaption></figcaption></figure>

## Verify Test Listener status <a href="#verify-test-listener-status" id="verify-test-listener-status"></a>

Under Cockpit > Build Monitor, on Unit Tests tab, check there is at least one Test Listener entry present and the status color of the Coverage Data Indicator. Green indicates coverage has been successfully sent to Sealights.

<figure><img src="https://4057366433-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAjqTCMRYvHhDgsdPLUnc%2Fuploads%2FjHN7XESU0bSUWrPOApvm%2FScreen%20Shot%202020-11-18%20at%203.13.35%20PM.png?alt=media&#x26;token=34f07a28-7df3-4507-8a20-a4d0b7ab8d28" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Java" %}
When using Sealights Maven plugin with Surefire, check that the Test Listener shows the “surefire” tag. Check CI log for Unit Test step if no Test Listener agent is listed in Build Monitor.
{% endtab %}

{% tab title=".NET" %}
When using Azure DevOps / VSTS plugin, ensure that the correct process architecture is defined for the process running the tests (MSTest, xUnit etc.)
{% endtab %}
{% endtabs %}

## Contact Sealights Support <a href="#contact-sealights-support" id="contact-sealights-support"></a>

If none of the above suggestions helped you to resolve the issue please [contact us](https://docs.sealights.io/knowledgebase/contact-support) for assistance.
