Skip to content

Commit 9b02946

Browse files
committed
tests: Add jsonschema2md test
1 parent ff9bc8d commit 9b02946

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

scripts/run-from-container.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ if command -v git &>/dev/null; then
175175
fi
176176

177177
# Prepare container repo
178+
args+=("--env" "APPS_PATH=${root}")
178179
args+=("--mount" "type=bind,src=${root},dst=${root}${relabel:-}")
179180

180181
"${runtime}" run "${args[@]}" "${@}"

tests/unit/general/schema.bats

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,13 @@ find_schemas() {
116116

117117
refute_output
118118
}
119+
120+
@test "documentation should be generated" {
121+
pushd "${DOCS_PATH}" || exit 1
122+
123+
run "./scripts/jsonschema2md.sh" --path "${APPS_PATH}"
124+
125+
popd || exit 1
126+
127+
assert_success
128+
}

0 commit comments

Comments
 (0)