VSTS配置以针对x64平台运行xUnit测试 [英] VSTS Configuration to run xUnit tests for x64 platform
问题描述
我需要为仅针对x64平台构建的运行xUnit测试进行配置.我该怎么办?
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.
这是我在VSTS中的属性:
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
推荐答案
请参阅以下步骤:
- 将BuildPlatform变量更改为x64
- NuGet恢复
-
构建解决方案(平台:
$(BuildPlatform);
配置:$(BuildConfiguration);
Visual Studio版本:Visual Studio 2017
)
- Change BuildPlatform variable to x64
- NuGet restore
Build solution (Platform:
$(BuildPlatform);
Configuration:$(BuildConfiguration);
Visual Studio Version:Visual Studio 2017
)
.Net Core(Preview)(命令:test
;项目:**/*Test*.csproj
;参数:--configuration $(BuildConfiguration) --logger "trx;LogFileName=TEST-results.xml" /property:Platform=$(BuildPlatform))
.Net Core (Preview) (Command: test
; Projects: **/*Test*.csproj
; Arguments: --configuration $(BuildConfiguration) --logger "trx;LogFileName=TEST-results.xml" /property:Platform=$(BuildPlatform))
这篇关于VSTS配置以针对x64平台运行xUnit测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!