From 25d967bc8499e49cbd8a0544813646f515497b2a Mon Sep 17 00:00:00 2001 From: ssube Date: Mon, 1 Jul 2019 08:46:09 -0500 Subject: [PATCH] fix(test): use ref config for example tests --- scripts/test-examples.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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."