【发布时间】:2021-02-15 17:17:17
【问题描述】:
Github Actions Workflow 中是否有 MSTest.exe YAML 等效项?
如果可以获取包含/testcontainer、/category 和/resultsfile 的示例 yaml?
我找到了MSBuild。不确定是否可以使用 MsBuild 来运行 MSTest,如果它是使用上面的示例也可以解决我的问题。
当前工作流 yaml
name: MS Test Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.0.2
- name: MSTest
shell: powershell
run: '& "$(vswhere -property installationPath)\Common7\IDE\MSTest.exe" /testcontainer:Test.dll /resultsfile:TestResults.trx'
编辑:更新为半工作解决方案。
【问题讨论】:
标签: msbuild yaml jenkins-plugins mstest github-actions