Skip to content

Commit 56c25a6

Browse files
committed
* Add support to toggle between dummy tests or smoke tests (default is for smoke/e2e)
1 parent c01bf2e commit 56c25a6

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.azuredevops/templates/steps/run-post-deployment-pw-tests.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ parameters:
1010
- name: slackWebHook
1111
type: string
1212
default: ''
13+
- name: runDummyTests
14+
type: boolean
15+
default: false
1316

1417
steps:
1518
- checkout: self
@@ -63,7 +66,16 @@ steps:
6366
echo "Contents of the directory:"
6467
ls -la
6568
echo "Running tests..."
66-
npm test
69+
70+
if [ "${{ parameters.runDummyTests }}" == "true" ]; then
71+
TEST_COMMAND="npm test:dummy"
72+
echo "##vso[task.logissue type=info] Running dummy tests..."
73+
else
74+
TEST_COMMAND="npm test"
75+
echo "##vso[task.logissue type=info] Running smoke tests..."
76+
fi
77+
78+
$TEST_COMMAND
6779
6880
EXIT_CODE=$?
6981

0 commit comments

Comments
 (0)