diff --git a/.pipelines/integration-test.yaml b/.pipelines/integration-test.yaml index 04e0cc7d..78727a88 100644 --- a/.pipelines/integration-test.yaml +++ b/.pipelines/integration-test.yaml @@ -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: @@ -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"