VSTS配置以针对x64平台运行xUnit测试 [英] VSTS Configuration to run xUnit tests for x64 platform

查看:64
本文介绍了VSTS配置以针对x64平台运行xUnit测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为仅针对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

推荐答案

请参阅以下步骤:

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

  1. Change BuildPlatform variable to x64
  2. NuGet restore
  3. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆