diff --git a/tools/pipelines/templates/include-test-task.yml b/tools/pipelines/templates/include-test-task.yml index d7b78f14a5f2..19dc74f06d71 100644 --- a/tools/pipelines/templates/include-test-task.yml +++ b/tools/pipelines/templates/include-test-task.yml @@ -15,7 +15,7 @@ parameters: default: false steps: -# Test - With coverage - Don't run with coverage if the task is a PR and the task is a tinylicious service and stress test. +# Test - With coverage - Don't run with coverage if the task is a PR and the task is a tinylicious service and stress test. We don't include coverage for these tests in our baseline coverage stats, so we don't need to run them with coverage here too. - ${{ if and(parameters.testCoverage, startsWith(parameters.taskTestStep, 'ci:test'), or(ne(variables['Build.Reason'], 'PullRequest'), and(not(contains(parameters.taskTestStep, 'realsvc:tinylicious')), not(contains(parameters.taskTestStep, 'stress:tinylicious')))))}}: - task: Npm@1 displayName: npm run ${{ parameters.taskTestStep }}:coverage