# \#test-script

**URL:** https://forum.canton.network/tag/test-script/33.md

[Latest](https://forum.canton.network/latest.md) · [Categories](https://forum.canton.network/categories.md) · [Tags](https://forum.canton.network/tags.md)

---

## [How to test witnessing/divulgence using DAML Script?](https://forum.canton.network/t/how-to-test-witnessing-divulgence-using-daml-script/7304)

<div class="topic-metadata">

**Author:** [@jvelasco.intellecteu](https://forum.canton.network/u/jvelasco.intellecteu)\
**Replies:** 3\
**Last updated:** [July 15, 2024, 2:54pm UTC](https://forum.canton.network/t/how-to-test-witnessing-divulgence-using-daml-script/7304 "2024-07-15T14:54:01Z")

</div>

Hello, Is there any way to test (using Daml script) that a contract has been witnessed or divulged to a party? Best Jose

---

## [Behavior-driven-development with daml-cucumber](https://forum.canton.network/t/behavior-driven-development-with-daml-cucumber/7115)

<div class="topic-metadata">

**Author:** [@ali-abrar](https://forum.canton.network/u/ali-abrar)\
**Replies:** 1\
**Last updated:** [February 21, 2024, 12:11pm UTC](https://forum.canton.network/t/behavior-driven-development-with-daml-cucumber/7115 "2024-02-21T12:11:44Z")

</div>

We (Obsidian Systems) have been using cucumber gherkin specifications on some of our daml-based projects. They’re great for building specifications that can be read both by a human and by gherkin tooling. What we lacked,…

---

## [How to get the runtime of tests (scripts) one by one](https://forum.canton.network/t/how-to-get-the-runtime-of-tests-scripts-one-by-one/3794)

<div class="topic-metadata">

**Author:** [@gaborh](https://forum.canton.network/u/gaborh)\
**Replies:** 3\
**Last updated:** [January 26, 2022, 2:58pm UTC](https://forum.canton.network/t/how-to-get-the-runtime-of-tests-scripts-one-by-one/3794 "2022-01-26T14:58:00Z")

</div>

I would like to see the runtime for each test, one by one. With daml test and --log-level=DEBUG, I think I am able to see the length of time it took to run all the tests. How is it possible to get results for each test…

---

## [Debug calls in a script - not visible in the logs](https://forum.canton.network/t/debug-calls-in-a-script-not-visible-in-the-logs/3793)

<div class="topic-metadata">

**Author:** [@gaborh](https://forum.canton.network/u/gaborh)\
**Replies:** 1\
**Last updated:** [January 26, 2022, 12:32pm UTC](https://forum.canton.network/t/debug-calls-in-a-script-not-visible-in-the-logs/3793 "2022-01-26T12:32:57Z")

</div>

I have the following code: stuff : Script () stuff = do debug "START" # do things ... debug "END" It prints the debug texts in the “Trace” section in Daml Studio but how is it that I do not see them in …

---

## [DAML Test Coverage?](https://forum.canton.network/t/daml-test-coverage/654)

<div class="topic-metadata">

**Author:** [@akhan](https://forum.canton.network/u/akhan)\
**Replies:** 9\
**Last updated:** [June 30, 2021, 7:51am UTC](https://forum.canton.network/t/daml-test-coverage/654 "2021-06-30T07:51:05Z")

</div>

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. Wh…

---

## [Elegant way to create separate DARs for building and testing?](https://forum.canton.network/t/elegant-way-to-create-separate-dars-for-building-and-testing/258)

<div class="topic-metadata">

**Author:** [@Richard\_Kapolnai](https://forum.canton.network/u/Richard_Kapolnai)\
**Replies:** 1\
**Last updated:** [April 26, 2020, 6:58pm UTC](https://forum.canton.network/t/elegant-way-to-create-separate-dars-for-building-and-testing/258 "2020-04-26T18:58:21Z")

</div>

We have a test scenario/script where we a simple template, which we don’t want to load when the DAR is loaded on the ledger. What is the recommended way to have a business.dar to contain only business templates and to b…
