DAML Tests using Script in the DAML Repo
- bernhardOP 1
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?
- cocreature 2
There is no direct equivalent of scenarios for DAML Script. The closest is the
daml test-scriptcommand which works roughly likedaml test. You can either point it at a ledger via--ledger-hostand--ledger-portor 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.