VSTS 配置到 运行 x64 平台的 xUnit 测试

VSTS Configuration to run xUnit tests for x64 platform

我需要为仅针对 x64 平台构建的 运行 xUnit 测试进行配置。我该怎么做?

我找到了 this 篇文章,但没有帮助。 我有

No test runs are available for this build.

这是我在 VSTS 中的属性:

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

参考这些步骤:

  1. 将 BuildPlatform 变量更改为 x64
  2. NuGet 恢复
  3. 构建解决方案(平台:$(BuildPlatform); 配置:$(BuildConfiguration); Visual Studio 版本:Visual Studio 2017

  4. .Net Core(预览版)(命令:test;项目:**/*Test*.csproj;参数:--configuration $(BuildConfiguration) --logger "trx;LogFileName=TEST-results.xml" /property:Platform=$(BuildPlatform))

  5. 发布测试结果(测试结果格式:VSTest;测试结果文件:**/TEST-*.xml