Draw the graph
Use this procedure to make a Mermaid diagram of the dependency graph. GitHub shows Mermaid diagrams in Markdown files.
Procedure
Add
--diagramto the command:bashhurl-orchestra --diagram ./testsOpen
diagram.md. The diagram shows each node with its number of outputs, and its priority if the priority is not 0.To write to a different file, add
--diagram-output:bashhurl-orchestra --diagram ./tests --diagram-output docs/api-graph.mdTo replace a file, add
--diagram-overwrite. Without it, hurl-orchestra does not change a file that exists.
Draw the graph of one file
Give the file instead of the directory. The diagram contains the file and its dependencies:
bash
hurl-orchestra --diagram tests/checkout.hurl --diagram-output -The - value writes the diagram to stdout.
Result
mermaid
flowchart LR
node_1["auth [out:1]"]
node_4["create_cart [out:1]"]
node_1 --> node_4