Skip to content

Commit

Permalink
Record video for failing win32 integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
grokys committed Jul 31, 2024
1 parent 0c4f6b5 commit 8091168
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
18 changes: 15 additions & 3 deletions azure-pipelines-integrationtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,23 @@ jobs:
projects: 'samples/IntegrationTestApp/IntegrationTestApp.csproj'

- task: DotNetCoreCLI@2
displayName: 'Build test project'
inputs:
command: 'build'
projects: 'tests\Avalonia.IntegrationTests.Appium\Avalonia.IntegrationTests.Appium.csproj'

- task: VSTest@2
displayName: 'Run Integration Tests'
retryCountOnTaskFailure: 3
inputs:
command: 'test'
projects: 'tests/Avalonia.IntegrationTests.Appium/Avalonia.IntegrationTests.Appium.csproj'
testAssemblyVer2: '**/Avalonia.IntegrationTests.Appium.dll'
runSettingsFile: 'tests\Avalonia.IntegrationTests.Appium\record-video.runsettings'

- task: PublishTestResults@2
displayName: 'Publish test results'
inputs:
testResultsFormat: 'XUnit'
testResultsFiles: '**/*.trx'
condition: succeededOrFailed()

- task: Windows Application Driver@0
inputs:
Expand Down
14 changes: 14 additions & 0 deletions tests/Avalonia.IntegrationTests.Appium/record-video.runsettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<DataCollectionRunSettings>
<DataCollectors>
<DataCollector uri="datacollector://microsoft/VideoRecorder/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TestTools.DataCollection.VideoRecorder.VideoRecorderDataCollector, Microsoft.VisualStudio.TestTools.DataCollection.VideoRecorder, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="Screen and Voice Recorder">
<Configuration>
<MediaRecorder sendRecordedMediaForPassedTestCase="false" xmlns=""> ​
<ScreenCaptureVideo bitRate="512" frameRate="2" quality="20" />​
</MediaRecorder>​
</Configuration>
</DataCollector>
</DataCollectors>
</DataCollectionRunSettings>
</RunSettings>

0 comments on commit 8091168

Please sign in to comment.