Skip to content

Commit

Permalink
test: run b59 with npx
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Nov 28, 2023
1 parent bcb8008 commit 70deca6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/profiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function reportFailure() {
for file in "$SCRIPT_PATH"/*/valid*.ttl; do
echo "Test case $file"
{
barnard59 cube check-metadata --profile validation/profile-opendataswiss.ttl > /dev/null 2>&1
npx barnard59 cube check-metadata --profile validation/profile-opendataswiss.ttl > /dev/null 2>&1
success=$?
} < "$file"

Expand All @@ -25,9 +25,9 @@ done
# iterate over invalid cases
for file in "$SCRIPT_PATH"/*/invalid*.cube.ttl; do
echo "Test case $file"
report=$(barnard59 cube check-metadata --profile validation/profile-opendataswiss.ttl < "$file" 2> /dev/null)
report=$(npx barnard59 cube check-metadata --profile validation/profile-opendataswiss.ttl < "$file" 2> /dev/null)
expectation="${file/cube\.ttl/expectation.ttl}"
if ! echo "$report" | barnard59 shacl validate --shapes "$expectation" > /dev/null 2>&1; then
if ! echo "$report" | npx barnard59 shacl validate --shapes "$expectation" > /dev/null 2>&1; then
reportFailure "$(cat "$expectation")" "$report"
FAILED=1
fi
Expand Down

0 comments on commit 70deca6

Please sign in to comment.