Skip to content

Commit

Permalink
tests: Add jsonschema2md test
Browse files Browse the repository at this point in the history
  • Loading branch information
aarnq committed Jan 17, 2025
1 parent ff9bc8d commit 9b02946
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/run-from-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ if command -v git &>/dev/null; then
fi

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

"${runtime}" run "${args[@]}" "${@}"
10 changes: 10 additions & 0 deletions tests/unit/general/schema.bats
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,13 @@ find_schemas() {

refute_output
}

@test "documentation should be generated" {
pushd "${DOCS_PATH}" || exit 1

run "./scripts/jsonschema2md.sh" --path "${APPS_PATH}"

popd || exit 1

assert_success
}

0 comments on commit 9b02946

Please sign in to comment.