зеркало из https://github.com/AvaloniaUI/Avalonia.git
Record video for failing win32 integration tests on CI. (#16546)
* Record video for failing win32 integration tests. * Be more specific when selecting the test dll. https://github.com/microsoft/vstest/issues/3939 --------- Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
This commit is contained in:
Родитель
0400665c57
Коммит
e0e99b31a8
|
@ -83,11 +83,23 @@ jobs:
|
||||||
projects: 'samples/IntegrationTestApp/IntegrationTestApp.csproj'
|
projects: 'samples/IntegrationTestApp/IntegrationTestApp.csproj'
|
||||||
|
|
||||||
- task: DotNetCoreCLI@2
|
- task: DotNetCoreCLI@2
|
||||||
displayName: 'Run Integration Tests'
|
displayName: 'Build test project'
|
||||||
retryCountOnTaskFailure: 3
|
|
||||||
inputs:
|
inputs:
|
||||||
command: 'test'
|
command: 'build'
|
||||||
projects: 'tests/Avalonia.IntegrationTests.Appium/Avalonia.IntegrationTests.Appium.csproj'
|
projects: 'tests\Avalonia.IntegrationTests.Appium\Avalonia.IntegrationTests.Appium.csproj'
|
||||||
|
|
||||||
|
- task: VSTest@2
|
||||||
|
displayName: 'Run Integration Tests'
|
||||||
|
inputs:
|
||||||
|
testAssemblyVer2: '**\bin\**\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
|
- task: Windows Application Driver@0
|
||||||
inputs:
|
inputs:
|
||||||
|
|
|
@ -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>
|
Загрузка…
Ссылка в новой задаче