Skip to content

Commit 36ccb53

Browse files
Split out UI Tests as their own step
Makes it easier to see output from only UI tests without knowing a scroll point in the log
1 parent 367a09a commit 36ccb53

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

azure-pipelines.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,25 @@ jobs:
5858
displayName: Publish Test Results
5959
condition: always()
6060

61-
- task: PublishPipelineArtifact@1
62-
displayName: Publish UI Test Results
63-
inputs:
64-
targetPath: .\build\UITestResults.wtl
65-
artifactName: WexLogFileOutput
66-
condition: always()
67-
6861
- task: PublishPipelineArtifact@1
6962
displayName: Publish Test WexLogFileOutput
7063
inputs:
7164
targetPath: .\build\WexLogFileOutput
72-
artifactName: WexErrorLogFileOutput
65+
artifactName: WexUnitTestErrorLogFileOutput
7366
condition: failed()
7467

68+
### UI Integration Tests ###
69+
70+
- powershell: .\build\build.ps1 -target=UITest
71+
displayName: UI Integration Tests
72+
73+
- task: PublishPipelineArtifact@1
74+
displayName: Publish UI Test Results
75+
inputs:
76+
targetPath: .\build\UITestResults.wtl
77+
artifactName: WexUITestLogFileOutput
78+
condition: always()
79+
7580
### Package ###
7681

7782
- powershell: .\build\build.ps1 -target=Package
@@ -107,9 +112,6 @@ jobs:
107112
artifact: Packages
108113
path: .\bin\nupkg
109114

110-
- powershell: dir .\bin\nupkg
111-
displayName: List NuGet Archive
112-
113115
- powershell: .\build\build.ps1 -target=SmokeTest
114116
displayName: SmokeTest
115117

build/build.cake

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public string getMSTestAdapterPath(){
243243
}
244244

245245
Task("Test")
246-
.Description("Runs all Tests")
246+
.Description("Runs all Unit Tests")
247247
.Does(() =>
248248
{
249249
Information("\nRunning Unit Tests");
@@ -272,7 +272,11 @@ Task("Test")
272272
ArgumentCustomization = arg => arg.Append($"-s {baseDir}/.runsettings"),
273273
};
274274
DotNetCoreTest(file.FullPath, testSettings);
275-
}).DoesForEach(GetFiles(taefBinDir + "/**/UITests.Tests.TAEF.dll"), (file) =>
275+
}).DeferOnError();
276+
277+
Task("UITest")
278+
.Description("Runs all UI Tests")
279+
.DoesForEach(GetFiles(taefBinDir + "/**/UITests.Tests.TAEF.dll"), (file) =>
276280
{
277281
Information("\nRunning TAEF Interaction Tests");
278282

@@ -315,6 +319,7 @@ Task("MSTestUITest")
315319
Task("Default")
316320
.IsDependentOn("Build")
317321
.IsDependentOn("Test")
322+
.IsDependentOn("UITest")
318323
.IsDependentOn("Package");
319324

320325
Task("UpdateHeaders")

0 commit comments

Comments
 (0)