Skip to content

Commit

Permalink
attempt to run each package's tests at at time
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-polinsky committed Oct 22, 2024
1 parent 9578ae6 commit 7a3a37a
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .pipelines/integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ variables:
- group: iTwin.js Integration Test Users
- group: iTwin.js Auth Client Integration tests

parameters:
- name: testPackages
type: object
default:
- browser-authorization
- electron-authorization
- oidc-signin-tool
- service-authorization
- node-cli-authorization

jobs:
- job: IntegrationTests
strategy:
Expand Down Expand Up @@ -105,13 +115,14 @@ jobs:
IMJS_TEST_REGULAR_USER_PASSWORD: $(IMJS_TEST_REGULAR_USER_PASSWORD)
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
- script: pnpm test:integration
displayName: pnpm test:integration
env:
# Couldn't get this variable to be ingested in the steps above, but this works
IMJS_TEST_AZUREAD_USER_PASSWORD: $(IMJS_TEST_AZUREAD_USER_PASSWORD)
IMJS_TEST_REGULAR_USER_PASSWORD: $(IMJS_TEST_REGULAR_USER_PASSWORD)
condition: and(succeeded(), ne(variables['Agent.OS'], 'Linux'))
- ${{ each testPackage in parameters.testPackages }}:
- script: pnpm test:integration --filter ${{testPackage}}
displayName: integration test
env:
# Couldn't get this variable to be ingested in the steps above, but this works
IMJS_TEST_AZUREAD_USER_PASSWORD: $(IMJS_TEST_AZUREAD_USER_PASSWORD)
IMJS_TEST_REGULAR_USER_PASSWORD: $(IMJS_TEST_REGULAR_USER_PASSWORD)
condition: and(succeeded(), ne(variables['Agent.OS'], 'Linux'))

- task: PublishTestResults@2
displayName: "Publish Integration Test Results"
Expand Down

0 comments on commit 7a3a37a

Please sign in to comment.