diff --git a/scripts/test-examples.sh b/scripts/test-examples.sh index 841e9a0..0a074df 100755 --- a/scripts/test-examples.sh +++ b/scripts/test-examples.sh @@ -1,7 +1,6 @@ #! /bin/bash EXAMPLES="$(find ./examples -name '*.yml')" -echo "Found examples: ${EXAMPLES}" while read -r example; do @@ -24,7 +23,12 @@ do echo "Expected errors: ${EXPECTED_ERRORS}" echo "Expected status: ${EXPECTED_STATUS}" - node out/index.js --rules "rules/${USE_RULES}.yml" --tag ${USE_TAGS} --source ${example} + node out/index.js \ + --config-path ./docs \ + --config-name config-stderr.yml \ + --rules "rules/${USE_RULES}.yml" \ + --tag ${USE_TAGS} \ + --source ${example} ACTUAL_STATUS=$? @@ -34,3 +38,5 @@ do exit 1 fi done <<< "${EXAMPLES}" + +echo "All examples passed."