From 9e8e42139ce1546f066a1b89b0129ba2ef9ae39c Mon Sep 17 00:00:00 2001 From: sarfaraz siddiqui Date: Sat, 20 Apr 2024 13:11:14 +0530 Subject: [PATCH] error in ren-tests.sh Signed-off-by: sarfaraz siddiqui --- stdlib/scripts/run-tests.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stdlib/scripts/run-tests.sh b/stdlib/scripts/run-tests.sh index eab72cdc19..7b05893265 100755 --- a/stdlib/scripts/run-tests.sh +++ b/stdlib/scripts/run-tests.sh @@ -23,6 +23,12 @@ mkdir -p "${BUILD_DIR}" source "${SCRIPT_DIR}"/build-stdlib.sh +echo "Validating API documentation strings in the Standard Library." +mojo doc validate "${REPO_ROOT}/stdlib/src" || { + echo "Documentation validation failed. Please check the API documentation strings." + exit 1 +} + echo "Packaging up the test_utils." TEST_UTILS_PATH="${REPO_ROOT}/stdlib/test/test_utils" mojo package "${TEST_UTILS_PATH}" -o "${BUILD_DIR}/test_utils.mojopkg"