winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

e2e-test.template.yml (2568B)


      1 parameters:
      2 - name: title
      3   type: string
      4 - name: isPackaged
      5   type: boolean
      6 - name: filter
      7   type: string
      8 - name: experimentalFeatures
      9   type: string
     10   default: 'none'
     11 
     12 steps:
     13   - task: CmdLine@2
     14     displayName: Start COM trace for ${{ parameters.title }}
     15     condition: and(succeededOrFailed(), eq(variables['System.debug'], true))
     16     inputs:
     17       script: 'wpr -start $(Build.SourcesDirectory)\tools\COMTrace\ComTrace.wprp -filemode'
     18 
     19   - task: VSTest@2
     20     displayName: Run ${{ parameters.title }}
     21     condition: succeededOrFailed()
     22     inputs:
     23       testRunTitle: ${{ parameters.title }}
     24       testSelector: 'testAssemblies'
     25       testAssemblyVer2: '$(buildOutDir)\AppInstallerCLIE2ETests\AppInstallerCLIE2ETests.dll'
     26       testFiltercriteria: ${{ parameters.filter }}
     27       ${{ if eq(parameters.isPackaged, true) }}:
     28           overrideTestrunParameters: '-PackagedContext true
     29                                       -AICLIPackagePath $(packageLayoutDir)
     30                                       -AICLIPath wingetdev.exe
     31                                       -LooseFileRegistration true
     32                                       -StaticFileRootPath $(buildOutDir)\E2ETests\TestLocalIndex
     33                                       -PowerShellModulePath $(buildOutDir)\PowerShell\Microsoft.WinGet.Client\Microsoft.WinGet.Client.psd1
     34                                       -LocalServerCertPath $(Agent.TempDirectory)\servercert.cer
     35                                       -SkipTestSource true
     36                                       -ForcedExperimentalFeatures ${{ parameters.experimentalFeatures }}'
     37       ${{ else }}:
     38           overrideTestrunParameters: '-PackagedContext false
     39                                       -AICLIPath $(packageLayoutDir)\AppInstallerCLI\winget.exe
     40                                       -StaticFileRootPath $(buildOutDir)\E2ETests\TestLocalIndex
     41                                       -PowerShellModulePath $(buildOutDir)\PowerShell\Microsoft.WinGet.Client\Microsoft.WinGet.Client.psd1
     42                                       -LocalServerCertPath $(Agent.TempDirectory)\servercert.cer
     43                                       -SkipTestSource true
     44                                       -ForcedExperimentalFeatures ${{ parameters.experimentalFeatures }}'
     45 
     46   - task: CmdLine@2
     47     displayName: Complete COM trace for ${{ parameters.title }}
     48     condition: and(succeededOrFailed(), eq(variables['System.debug'], true))
     49     inputs:
     50       script: 'wpr -stop "$(artifactsDir)\ComTrace - ${{ parameters.title }}.etl"'