-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
36 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ certificates | |
/playwright-report/ | ||
/blob-report/ | ||
/playwright/.cache/ | ||
/coverage | ||
report.json |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
set -e # Exit immediately if a command exits with a non-zero status | ||
docker compose down --volumes --remove-orphans | ||
docker compose -f docker-compose-integration.yaml up -d | ||
|
||
# wait for flyway to finish running before... | ||
docker compose -f docker-compose-integration.yaml logs -f flyway | grep -q "Successfully applied\|No migration necessary" | ||
|
||
BASE_CMD="DATABASE_URL=postgresql://postgres:pw@localhost:5432/tefca_db TEST_TYPE=integration jest " | ||
# running our integration tests | ||
if [ "$JUST_INTEGRATION" = "true" ]; then | ||
JEST_CMD="$BASE_CMD --testPathPattern=tests/integration" | ||
else | ||
# assuming that the only reason we'd want to run both the unit and integration tests is in the CI context where we need to gather coverage report info | ||
JEST_CMD="$BASE_CMD --testPathIgnorePatterns='/e2e/' --ci --json --coverage --testLocationInResults --outputFile=report.json" | ||
fi | ||
eval $JEST_CMD | ||
JEST_EXIT_CODE=$? | ||
|
||
# Teardown containers | ||
docker compose -f docker-compose-integration.yaml down | ||
|
||
# Exit with the Jest exit code | ||
exit $JEST_EXIT_CODE |
a87b5ad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage report for
./query-connector
Test suite run success
72 tests passing in 9 suites.
Report generated by 🧪jest coverage report action from a87b5ad