Skip to content

Commit

Permalink
test: run all api-collection with a script
Browse files Browse the repository at this point in the history
  • Loading branch information
azzamsa committed Jun 19, 2024
1 parent 4863f9a commit 44dccd9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/api-collection/asserts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

#
# Script to run all the `api-collection` assertions.
#

directories=("meta")
for dir in "${directories[@]}"; do
hurl --test --glob "${dir}/**/*.hurl" --variables-file props/local
done

# Only run `query` assertions.
files=(
"user"
"users"
"users_both_first_and_last"
"users_first_3"
"users_first_3_after_n"
"users_invalid_cursor"
"users_last_1_before_n"
"users_last_3"
"users_no_first_or_last"
)
for file in "${files[@]}"; do
hurl --test --variables-file props/local "user/${file}.hurl"
done

0 comments on commit 44dccd9

Please sign in to comment.