# DAML Tests using Script in the DAML Repo

**URL:** <https://forum.canton.network/t/daml-tests-using-script-in-the-daml-repo/416>\
**Category:** App Development\
**Created:** [May 11, 2020, 1:57pm UTC](https://forum.canton.network/t/daml-tests-using-script-in-the-daml-repo/416 "2020-05-11T13:57:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bernhard](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bernhard/32/356_2.png) [@bernhard](https://forum.canton.network/u/bernhard)\
**Post date:** [May 11, 2020, 1:57pm UTC](https://forum.canton.network/t/daml-tests-using-script-in-the-daml-repo/416/1 "2020-05-11T13:57:41Z")

</div>

Most [DAML tests](https://github.com/digital-asset/daml/tree/master/compiler/damlc/tests/daml-test-files) in the [DAML repo](https://github.com/digital-asset/daml) are written using scenarios. Is it possible to add DAML Script based scenarios? Is there a Bazel rule for that?

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [May 11, 2020, 2:49pm UTC](https://forum.canton.network/t/daml-tests-using-script-in-the-daml-repo/416/2 "2020-05-11T14:49:03Z")

</div>

There is no direct equivalent of scenarios for DAML Script. The closest is the `daml test-script` command which works roughly like `daml test`. You can either point it at a ledger via `--ledger-host` and `--ledger-port` or if you do not specify that an in-memory sandbox will be started.

However, contrary to scenarios that is still running against an actual ledger which comes with some overhead and makes things like life feedback in the IDE harder to implement.

As for Bazel rules, we don’t have any atm.
