summaryrefslogtreecommitdiff
path: root/subplot.md
diff options
context:
space:
mode:
Diffstat (limited to 'subplot.md')
-rw-r--r--subplot.md40
1 files changed, 40 insertions, 0 deletions
diff --git a/subplot.md b/subplot.md
index bcd4eb9..b2cdecf 100644
--- a/subplot.md
+++ b/subplot.md
@@ -1458,6 +1458,46 @@ and file mtime.html contains "Geoffrey Butler"
and file mtime.html contains "2020-02-26 07:53"
~~~
+### Missing bindings file
+
+If a bindings file is missing, the error message should name the
+missing file.
+
+~~~scenario
+given file missing-binding.md
+when I try to run sp-docgen missing-binding.md -o foo.htmlh
+then exit code is non-zero
+and stderr matches /: missing-binding.yaml:/
+~~~
+
+~~~{#missing-binding.md .file .markdown .numberLines}
+---
+title: Missing binding
+bindings: missing-binding.yaml
+...
+~~~
+
+### Missing functions file
+
+If a functions file is missing, the error message should name the
+missing file.
+
+~~~scenario
+given file missing-functions.md
+and file b.yaml
+when I try to run sp-codegen --run missing-functions.md -o foo.py
+then exit code is non-zero
+and stderr matches /: missing-functions.py:/
+~~~
+
+~~~{#missing-functions.md .file .markdown .numberLines}
+---
+title: Missing functions
+bindings: b.yaml
+functions: missing-functions.py
+...
+~~~
+
### Extracting metadata from a document
The **sp-meta** program extracts metadata from a document. It is