File tree 4 files changed +19
-13
lines changed
4 files changed +19
-13
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ enableScenarioOpt = EnableScenarioService <$>
209
209
210
210
enableScriptsOpt :: Parser EnableScripts
211
211
enableScriptsOpt = EnableScripts <$>
212
- flagYesNoAuto " daml-script" False " Enable/disable support for running DAML Scripts" internal
212
+ flagYesNoAuto " daml-script" True " Enable/disable support for running DAML Scripts" internal
213
213
214
214
dlintEnabledOpt :: Parser DlintUsage
215
215
dlintEnabledOpt = DlintEnabled
Original file line number Diff line number Diff line change @@ -542,7 +542,7 @@ scriptTests damlcPath scriptDarPath = testGroup "scripts"
542
542
, " - daml-script.dar"
543
543
]
544
544
withCurrentDirectory dir $
545
- runSessionWithConfig conf (damlcPath <> " ide --daml-script=yes " ) fullCaps' dir s
545
+ runSessionWithConfig conf (damlcPath <> " ide" ) fullCaps' dir s
546
546
547
547
executeCommandTests :: (forall a . Session a -> IO a ) -> (Session () -> IO () ) -> TestTree
548
548
executeCommandTests run _ = testGroup " execute command"
Original file line number Diff line number Diff line change @@ -15,13 +15,14 @@ in a special process and do not interact with an actual ledger. This
15
15
means that you cannot use scenarios to test other ledger clients,
16
16
e.g., your UI or :doc: `DAML triggers </triggers/index >`.
17
17
18
- DAML script addresses this problem by providing you with an API with
18
+ DAML Script addresses this problem by providing you with an API with
19
19
the simplicity of DAML scenarios and all the benefits such as being
20
- able to reuse your DAML types and logic while running against an
21
- actual ledger. This means that you can use it to test automation
22
- logic, your UI but also for
23
- :ref: `ledger initialization <script-ledger-initialization >` where scenarios
24
- cannot be used (with the exception of :doc: `/tools/sandbox `).
20
+ able to reuse your DAML types and logic while running against an actual
21
+ ledger in addition to allowing you to experiment in :ref: `DAML Studio <scenario-results >`.
22
+ This means that you can use it to test automation logic, your
23
+ UI but also for :ref: `ledger initialization
24
+ <script-ledger-initialization>` where scenarios cannot be used (with
25
+ the exception of :doc: `/tools/sandbox `).
25
26
26
27
You can also use DAML Script interactively using :doc: `/daml-repl/index `.
27
28
Original file line number Diff line number Diff line change @@ -97,12 +97,17 @@ You can `hover`_ over most symbols in the code to display additional information
97
97
98
98
.. _hover : https://code.visualstudio.com/docs/editor/editingevolved#_hover
99
99
100
- Scenario results
101
- ================
100
+ .. _scenario-results :
102
101
103
- Top-level declarations of type ``Scenario `` are decorated with a ``Scenario results `` code lens.
104
- You can click on the ``Scenario results `` code lens to inspect the
105
- execution of the scenario.
102
+ Scenario and DAML Script results
103
+ ================================
104
+
105
+ Top-level declarations of type ``Scenario `` or ``Script `` are decorated with
106
+ a ``Scenario results `` or a ``Script results `` code lens.
107
+ You can click on the code lens to inspect the
108
+ execution transaction graph and the active contracts. The functionality
109
+ for inspecting the results is identical for DAML Scripts
110
+ and scenarios.
106
111
107
112
For the scenario from the :download: `Iou<daml-studio/daml/Iou.daml> `
108
113
module, you get the following table displaying all contracts that are
You can’t perform that action at this time.
0 commit comments