1
votes

When using the new TFS Build 2015 vNext, the test ran but the result is not published. The tests run fine locally with results. Any help would be great.

Executing the powershell script:
C:\users\x\downloads\agent\tasks\VSTest\1.0.32\VSTest.ps1
Working folder: C:\TfsData\Build\_work\1
Executing C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe "C:\TfsData\Build\_work\1\s\x.Tests\bin\Debug\x.Tests.dll"  /logger:trx
Microsoft (R) Test Execution Command Line Tool Version 14.0.25420.1
Copyright (c) Microsoft Corporation.  All rights reserved.
Starting test execution, please wait...
Information: Additionally, you can try specifying '/UseVsixExtensions' command if the test discoverer & executor is installed on the machine as vsix extensions and your installation supports vsix extensions. Example: vstest.console.exe myTests.dll /UseVsixExtensions:true
No results found to publish

See image result This is using the new build vNext. Can't find the problem anywhere. Any help is greatly appreciated.

2
What test framework are you using? Is it successfully running the tests?Daniel Mann
Visual Studio Test. Yes, I can open and run on Visual Studio without problems.Jutiphan
Here is the full log downloaded from TFS: 1drv.ms/u/s!AqjGqhvxupemodhxpg6XVEZsmJKA3gJutiphan

2 Answers

1
votes

I recommend you to install on your build server the last updates of Visual Studio, and Sql Server Data Tools.

0
votes

According to your log, there is no test result generated. You need to check whether C:\TfsData\Build\_work\1\s\TKSLibrary.Tests\bin\Debug\TKSLibrary.Tests.dll is the correct path and TKSLibrary.Tests.dll is the correct file that you want to run.

Meanwhile, try to use vstest.console.exe command line directly on your build agent machine to run the test, and check whether you can get the test result.

A similar case here for your reference: TFS 2015 Build: Test results not being published, maybe it can help you find out the issue.