Jutiphan
Jutiphan

Reputation: 13

TFS Build 2015 No results found to publish

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.

Upvotes: 1

Views: 1813

Answers (2)

gentiane
gentiane

Reputation: 6845

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

Upvotes: 1

Cece Dong - MSFT
Cece Dong - MSFT

Reputation: 31075

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.

Upvotes: 0

Related Questions