2
votes

I am running my test in TFS (Nunit plus Visual Studio with Adapter) and I have set the build definition as below

Publish Test Results

Build succeeds but no test result file was generated Does TFS writes this Xml file ? Log

2017-02-08T08:08:40.8151428Z Executing the powershell script: D:\A1\agent\tasks\PublishTestResults\1.0.20\PublishTestResults.ps1

2017-02-08T08:08:41.0963795Z ##[warning]No test result files were found using search pattern 'D:\A1_work\1\s**\TEST-*.xml'.

1
Looks like you are using Nunit VS Test Adapter and Visual Studio Test task, Which one are you using Nunit2 or Nunit3? Could you share your test framework?PatrickLu-MSFT
Can you share the entire build logs?Eddie Chen - MSFT

1 Answers

0
votes

If the Nunit plus Visual Studio with Adapter means you have two test steps: one for unit tests and the other one for vs tests.

Please also add two "Publish Test Results" step one for Nunit format.

enter image description here

Also run your test manually on the build server to see if test result file .trx generated on the machine.