daml/triggers/tests
Andreas Herrmann 74984559e8 Test triggers in scenarios (#4233)
* Bazel test for trigger scenario

* daml-triggers: Allow testing trigger rules in scenarios

CHANGELOG_BEGIN
- [DAML Triggers - Experimental] DAML triggers can now be tested in
scenarios. Specifically, a trigger's ``rule`` can be executed in a
scenario and assertions performed on the emitted commands.
CHANGELOG_END

* Allow assertions on create commands

CHANGELOG_BEGIN
* [DAML stdlib] Add `CanAbort` instance for `Either Text`.
CHANGELOG_END

* Add convenience to construct ACS for testRule

* Add assertions for exercise and exerciseByKey

* fix assert message

* Test assertExercise(ByKey)Cmd

* unpackCommands --> flattenCommands

* Add API documentation

* Document that command ids start from "0"

* generalise command assertions to CanAbortm

* export ACSBuilder type

* Better haddocs for trigger command assertions

* explicit let

* ./fmt.sh

* Fix runfiles on Windows

* Add reference to Bazel issue

Co-authored-by: Andreas Herrmann <andreash87@gmx.ch>
2020-01-28 11:50:46 +00:00
..
daml Implement DAML trigger heartbeat (#4011) 2020-01-10 16:04:47 +00:00
scenarios Test triggers in scenarios (#4233) 2020-01-28 11:50:46 +00:00
src/test/scala/com/digitalasset/daml/lf/engine/trigger/test Implement DAML trigger heartbeat (#4011) 2020-01-10 16:04:47 +00:00
BUILD.bazel Implement DAML trigger heartbeat (#4011) 2020-01-10 16:04:47 +00:00
list-triggers.sh Implement DAML trigger heartbeat (#4011) 2020-01-10 16:04:47 +00:00