VSTS Configuration to run xUnit tests for x64 platform

蓝咒 提交于 2019-12-11 06:59:40

问题


I need to make configuration for run xUnit test that build only for x64 platform. How can I do that?

I found this article but it doesn't help. I've got

No test runs are available for this build.

Here are my properties in VSTS:

Test assemblies: **\*test*.dll  !**\obj\**
Search folder: src/Modules
Test platform version: Visual Studio 2017
Build platform: x64
Build configuration: Release

回答1:


Refer to these steps:

  1. Change BuildPlatform variable to x64
  2. NuGet restore
  3. Build solution (Platform: $(BuildPlatform); Configuration: $(BuildConfiguration); Visual Studio Version: Visual Studio 2017)

  4. .Net Core (Preview) (Command: test; Projects: **/*Test*.csproj; Arguments: --configuration $(BuildConfiguration) --logger "trx;LogFileName=TEST-results.xml" /property:Platform=$(BuildPlatform))

  5. Publish Test Results (Test Result Format: VSTest; Test Results Files: **/TEST-*.xml)


来源:https://stackoverflow.com/questions/43287353/vsts-configuration-to-run-xunit-tests-for-x64-platform

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!