Jenkins Plugin MSTestRunner equivalent in GitHub Workflow Actions

Working solution. Still looking for improvements but this will work


name: MS Test Build

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:

  build:
    runs-on: windows-latest
                             
    steps:
    - name: Checkout
      uses: actions/[email protected]
    
    - name: Setup MSBuild
      uses: microsoft/[email protected]

    - name: MSTest
      shell: powershell
      run: '& "$(vswhere -property installationPath)\Common7\IDE\MSTest.exe" /testcontainer:Test.dll /resultsfile:TestResults.trx'

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top