tag:help.appveyor.com,2012-11-13:/discussions/problems/6479-test-results-not-displayed-after-uploading-with-build-worker-apiAppVeyor: Discussion 2018-08-25T02:16:22Ztag:help.appveyor.com,2012-11-13:Comment/423536842017-04-13T00:55:14Z2017-04-13T00:55:15ZTest results not displayed after uploading with build worker api<div><p>I am using the build worker api to upload our test results. The upload seems to work, but no test results are displayed. Here is an example: <a href="https://ci.appveyor.com/project/dmpots/directxshadercompiler/build/1.0.91">https://ci.appveyor.com/project/dmpots/directxshadercompiler/build/...</a></p>
<p>The tests tab shows that there are 890 tests, but when I click on the tab no results are displayed.</p>
<p>The test results are produced by a custom test tool and I convert the results to JSON and upload using the build worker api: <a href="https://www.appveyor.com/docs/build-worker-api/#add-tests">https://www.appveyor.com/docs/build-worker-api/#add-tests</a></p>
<p>The script I use is here: <a href="https://github.com/dmpots/DirectXShaderCompiler/blob/master/utils/appveyor/appveyor_test.ps1">https://github.com/dmpots/DirectXShaderCompiler/blob/master/utils/a...</a></p>
<p>Do you have any idea what is happening or if I am doing something wrong? Thanks!</p></div>dmpotstag:help.appveyor.com,2012-11-13:Comment/423536842017-04-13T02:27:56Z2017-04-13T02:28:27ZTest results not displayed after uploading with build worker api<div><p>Could you please save <code>testresults.xml</code> as <a href="https://www.appveyor.com/docs/packaging-artifacts/">artifact</a> and send it to us to us to investigate?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/423536842017-04-13T06:24:56Z2017-04-13T06:24:56ZTest results not displayed after uploading with build worker api<div><p>I have saved the original .xml and the .json file used for upload as artifacts. <a href="https://ci.appveyor.com/project/dmpots/directxshadercompiler/build/1.0.94/artifacts">https://ci.appveyor.com/project/dmpots/directxshadercompiler/build/...</a></p>
<p>Please let me know if this is sufficient or if I should put them somewhere else. Thanks for the help!</p></div>dmpotstag:help.appveyor.com,2012-11-13:Comment/423536842017-04-14T03:22:57Z2017-04-14T03:22:57ZTest results not displayed after uploading with build worker api<div><p>Yes, that's good. Was not able to look at this earlier, will look on Friday.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/423536842017-04-14T03:32:44Z2017-04-14T03:32:44ZTest results not displayed after uploading with build worker api<div><p>Ok, sounds good. Thanks for the update!</p></div>dmpotstag:help.appveyor.com,2012-11-13:Comment/423536842017-04-14T22:14:22Z2017-04-14T22:14:22ZTest results not displayed after uploading with build worker api<div><p>OK, found it. Please use <code>Post</code> <a href="https://github.com/dmpots/DirectXShaderCompiler/blob/master/utils/appveyor/appveyor_test.ps1#L38">here</a>. <code>Put</code> is for update.</p>
<p>Ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/423536842017-04-15T00:36:08Z2017-04-15T00:36:08ZTest results not displayed after uploading with build worker api<div><p>Thanks! It totally works now:<br>
<a href="https://ci.appveyor.com/project/dmpots/directxshadercompiler/build/1.0.96/tests">https://ci.appveyor.com/project/dmpots/directxshadercompiler/build/...</a></p>
<p>I really appreciate the help. Sorry for the silly error.</p></div>dmpotstag:help.appveyor.com,2012-11-13:Comment/423536842017-04-15T01:21:30Z2017-04-15T01:21:30ZTest results not displayed after uploading with build worker api<div><p>You are welcome :) We all do that kind of errors, second pair of eyes always can help. And thank you for the catch, we created <a href="https://github.com/appveyor/ci/issues/1495">this</a> issue.</p></div>Ilya Finkelshteyn