DAML Tests using Script in the DAML Repo

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?

1 Like

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.

2 Likes