1
0
Fork 0

fix(test): use ref config for example tests

This commit is contained in:
ssube 2019-07-01 08:46:09 -05:00
parent b7d0b43fd2
commit 25d967bc84
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 8 additions and 2 deletions

View File

@ -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."