Skip to content
Discussions/App Development/DAML Test Coverage?Forum ↗

DAML Test Coverage?

App Development10 posts1,349 views13 likesLast activity Jun 2021
AK
akhanOP
Jun 2020

Mod note: We now have test coverage metrics for Templates and Choices as of 1.11.0 RC and this feature may get further improvement in future releases

I haven’t seen it explicitly mentioned yet, so I figured I’d ask.

Whats the view on creating some sort of reporting or coverage metrics from DAML Scripts/Scenarios for DAML code? Is there a tool that provides this today? Is this on the roadmap of the SDK?

Links for conversation:

CO
cocreature
Jun 2020

Hi @akhan, at the moment there is no tooling for reporting test coverage metrics. It is a very reasonable feature request but for now it is not on our roadmap so I cannot give you a timeline.

AN
anthony
Jun 2020

Is there a GH issue for it? Would be good to track for when there’s capacity to add it.

CO
cocreature
Jun 2020

Not yet, we’re waiting for you to create one :slightly_smiling_face:

AN
anthony
Jun 2020

Opened one :slightly_smiling_face:

github.com/digital-asset/daml

DAML Test Coverage

opened 05:34PM - 16 Jun 20 UTC

As first mentioned by Asad Khan here it would be great if DAML had a tool to report code coverage metrics. I...

AN
anthony
Feb 2021

Following up, this hasn’t made it into a release yet but we now have coverage of templates and choices output from damlc test. Thanks Robin!

github.com/digital-asset/daml

damlc: show test coverage

digital-asset:maindigital-asset:test_coverage
opened 05:55PM - 10 Feb 21 UTC
GA
Gary_Verhaegen
Feb 2021

The 1.10 release train has departed already so this will not be available before 1.11.

AN
anthony
Mar 2021

Hey @akhan we now have test coverage in the latest RC, full release notes are here if you wanted to check it out.

HU
huw
Jun 2021

As far as I can tell, there is no coverage report showing each individual statement/line of code that has been executed. Would be good to have a nice HTML file I can view in the browser displaying the DAML code and with highlighting to show which parts are executed or not. Is there any plan to add this feature?

CO
cocreature
Jun 2021

At the moment there is no concrete plan to extend the coverage reporting.

← Back to Discussions