1

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
Pr.Dumbledor
  • 636
  • 1
  • 11
  • 29
  • What's the type of your project, dotnet or dotnet core or something? – Marina Liu Apr 13 '17 at 01:43
  • If you are using .net core project, you can also refer the setting for vs test task as http://stackoverflow.com/questions/38860732/vsts-build-of-net-core-1-0-vstest-warning-no-test-is-available. – Marina Liu Apr 13 '17 at 10:05

1 Answers1

3

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)
starian chen-MSFT
  • 33,174
  • 2
  • 29
  • 53