问题
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:
- Change BuildPlatform variable to x64
- NuGet restore
Build solution (Platform:
$(BuildPlatform);Configuration:$(BuildConfiguration);Visual Studio Version:Visual Studio 2017).Net Core (Preview) (Command:
test; Projects:**/*Test*.csproj; Arguments:--configuration $(BuildConfiguration) --logger "trx;LogFileName=TEST-results.xml" /property:Platform=$(BuildPlatform))- 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