Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions eng/tsp-core/pipelines/jobs/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ parameters:
- name: azLogin
type: boolean
default: false
- name: testFilter
type: string
default: ""
jobs:
- job: e2e
displayName: E2E Tests
Expand Down Expand Up @@ -32,9 +35,9 @@ jobs:
azureSubscription: "Azure SDK Engineering System"
scriptType: bash
scriptLocation: inlineScript
inlineScript: pnpm run test:e2e
inlineScript: pnpm run test:e2e ${{ parameters.testFilter }}
- ${{ else }}:
- script: pnpm run test:e2e
- script: pnpm run test:e2e ${{ parameters.testFilter }}
displayName: E2E Tests

- task: 1ES.PublishPipelineArtifact@1
Expand Down
1 change: 1 addition & 0 deletions eng/tsp-core/pipelines/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ extends:
- template: /eng/tsp-core/pipelines/jobs/e2e.yml@self
parameters:
azLogin: true
testFilter: "--filter=!@typespec/e2e"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case we run into future issues, we could add a variable in the pipeline so that we can pass in filters on future runs without changes to the code

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like:

Suggested change
testFilter: "--filter=!@typespec/e2e"
testFilter: "$(E2ETestFilter)"


- stage: publish_npm
displayName: Publish Npm Packages
Expand Down
Loading