Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/DAML Tests using Script in the DAML RepoForum ↗

DAML Tests using Script in the DAML Repo

App Development2 posts373 views3 likesLast activity May 2020
BE
bernhardOP
May 2020

Most DAML tests in the DAML repo are written using scenarios. Is it possible to add DAML Script based scenarios? Is there a Bazel rule for that?

CO
cocreature
May 2020

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.

← Back to Discussions