Skip to content

Commit

Permalink
Updates for end-to-end testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcameron committed Dec 4, 2023
1 parent a0e88b1 commit 846e042
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ module.exports = defineConfig({

/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter : [
['html', { outputFolder : 'results/playwright-report' }],
['html', process.env.E2E_TEST_SERVER
? { open : 'never' }
: { outputFolder : 'results/playwright-report' }],
['junit', {
outputFile : process.env.TEST_NUM
? `results/end-to-end-${process.env.TEST_NUM}-results.xml`
Expand Down
3 changes: 2 additions & 1 deletion sh/test-e2e-all.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash

# bash strict mode
set -eo pipefail
set +e
set -o pipefail

# Make sure results directory exists
if [[ ! -d results ]]; then
Expand Down
3 changes: 2 additions & 1 deletion sh/test-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ echo "==============================================="
echo ""

# bash script mode
set -euo pipefail
set +e
set -o pipefail

# Make sure results directory exists
if [[ ! -d results ]]; then
Expand Down

0 comments on commit 846e042

Please sign in to comment.