# Test coverage showing as greater than 100%

**URL:** <https://forum.canton.network/t/test-coverage-showing-as-greater-than-100/4811>\
**Category:** App Development\
**Tags:** daml, features and bugs, daml-sdk\
**Created:** [June 29, 2022, 11:10pm UTC](https://forum.canton.network/t/test-coverage-showing-as-greater-than-100/4811 "2022-06-29T23:10:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Turan](https://avatars.discourse-cdn.com/v4/letter/t/8491ac/32.png) [@Turan](https://forum.canton.network/u/Turan)\
**Post date:** [June 29, 2022, 11:10pm UTC](https://forum.canton.network/t/test-coverage-showing-as-greater-than-100/4811/1 "2022-06-29T23:10:53Z")

</div>

When running daml test we are getting a total test coverage result of greater than 100%.

**test coverage: templates 5450%, choices 9167%**

Do you know what the cause may be? Our dar imports a couple of others via data-dependencies so could it be that in the percentage calculation logic is including lines it covers in those?

---

<div class="post-metadata">

**Author:** ![akrmn](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/akrmn/32/2484_2.png) [@akrmn](https://forum.canton.network/u/akrmn)\
**Post date:** [June 30, 2022, 3:05pm UTC](https://forum.canton.network/t/test-coverage-showing-as-greater-than-100/4811/2 "2022-06-30T15:05:18Z")

</div>

Hi @Turan, thank you for raising this. It looks like even non-data dependencies can cause this if the scripts in the “main” module create templates defined in the dependencies. I’ve opened [`daml test` coverage report shows pecentages over 100 when using templates from dependencies · Issue #14309 · digital-asset/daml · GitHub](https://github.com/digital-asset/daml/issues/14309) to track this.

---

<div class="post-metadata">

**Author:** ![Turan](https://avatars.discourse-cdn.com/v4/letter/t/8491ac/32.png) [@Turan](https://forum.canton.network/u/Turan)\
**Post date:** [November 22, 2022, 11:44am UTC](https://forum.canton.network/t/test-coverage-showing-as-greater-than-100/4811/3 "2022-11-22T11:44:05Z")

</div>

I see this was resolved. Which daml release did (will it) make it into?

---

<div class="post-metadata">

**Author:** ![Dylan\_Thinnes](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/dylan_thinnes/32/5319_2.png) [@Dylan\_Thinnes](https://forum.canton.network/u/Dylan_Thinnes)\
**Post date:** [November 24, 2022, 3:17pm UTC](https://forum.canton.network/t/test-coverage-showing-as-greater-than-100/4811/4 "2022-11-24T15:17:47Z")

</div>

Hi @Turan , this will make it into Daml release 2.5.0.
