blob: 1b617f41fb4b4f3079949278098846d475108ac6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
#
# See https://docs.microsoft.com/en-us/vsts/pipelines/yaml-schema for details on this file.
#
# Configure which branches trigger builds
trigger:
batch: true
branches:
include:
- main
- release/*
- internal/release/*
# Run PR validation on all branches
pr:
autoCancel: true
branches:
include:
- '*'
variables:
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
value: true
- name: EXECUTE_COMPONENTS_E2E_TESTS
value: true
- name: _TeamName
value: AspNetCore
jobs:
- template: jobs/default-build.yml
parameters:
jobName: Components_E2E_Test
jobDisplayName: "Test: Blazor E2E tests on Linux"
agentOs: Linux
isAzDOTestingJob: true
enablePublishTestResults: false
timeoutInMinutes: 75
steps:
- script: git submodule update --init
displayName: Update submodules
- script: ./restore.sh
displayName: Run restore.sh
- script: yarn install --frozen-lockfile --cwd ./src/Components/test/E2ETest
displayName: NPM install
- script: .dotnet/dotnet build ./src/Components/test/E2ETest -c $(BuildConfiguration) --no-restore
displayName: Build
- script: .dotnet/dotnet test ./src/Components/test/E2ETest -c $(BuildConfiguration) --no-build --filter 'Quarantined!=true|Quarantined=false'
--logger:"trx%3BLogFileName=Microsoft.AspNetCore.Components.E2ETests.trx"
--logger:"html%3BLogFileName=Microsoft.AspNetCore.Components.E2ETests.html"
--results-directory $(Build.SourcesDirectory)/artifacts/TestResults/$(BuildConfiguration)/Unquarantined
displayName: Run E2E tests
- script: .dotnet/dotnet test ./src/Components/test/E2ETest -c $(BuildConfiguration) --no-build --filter 'Quarantined=true' -p:RunQuarantinedTests=true
--logger:"trx%3BLogFileName=Microsoft.AspNetCore.Components.E2ETests.trx"
--logger:"html%3BLogFileName=Microsoft.AspNetCore.Components.E2ETests.html"
--results-directory $(Build.SourcesDirectory)/artifacts/TestResults/$(BuildConfiguration)/Quarantined
displayName: Run Quarantined E2E tests
continueOnError: true
- task: PublishTestResults@2
displayName: Publish E2E Test Results
inputs:
testResultsFormat: 'VSTest'
testResultsFiles: '*.trx'
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(BuildConfiguration)/Unquarantined'
testRunTitle: ComponentsE2E-$(AgentOsName)-$(BuildConfiguration)-xunit
condition: always()
- task: PublishTestResults@2
displayName: Publish Quarantined E2E Test Results
inputs:
testResultsFormat: 'VSTest'
testResultsFiles: '*.trx'
searchFolder: '$(Build.SourcesDirectory)/artifacts/TestResults/$(BuildConfiguration)/Quarantined'
testRunTitle: Quarantine-$(AgentOsName)-$(BuildConfiguration)-xunit
mergeTestResults: true
condition: always()
artifacts:
- name: Components_E2E_Test_Logs
path: '$(Build.SourcesDirectory)/artifacts/TestResults/$(BuildConfiguration)'
includeForks: true
publishOnError: true
|