tag:help.appveyor.com,2012-11-13:/discussions/questions/30847-custom-test-frameworkAppVeyor: Discussion 2019-01-03T20:18:36Ztag:help.appveyor.com,2012-11-13:Comment/465859862018-12-03T14:17:19Z2018-12-03T14:17:19Zcustom test framework<div><p>Hi Chris,</p>
<p>By test assemblies AppVeyor assumes .NET test assemblies. AppVeyor checks those assemblies with reflection and runs respective .NET test runners (xunit, nunit etc) against them.</p>
<p>This does not look like your case. What I believe you have to do is simple run your tests <a href="https://www.appveyor.com/docs/running-tests/#calling-test-runners-from-your-custom-scripts">as a custom script</a>. And if your test can produce XML results in one of formats described <a href="https://www.appveyor.com/docs/running-tests/#pushing-real-time-test-results-to-build-console">here</a>, you should be able to upload test results to AppVeyor.</p>
<p>Please let us know if this helps.</p>
<p>Ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/465859862018-12-28T01:56:38Z2018-12-28T01:56:40Zcustom test framework<div><p>Hello Ilya,</p>
<p>(This is Chris again. I think I hadn't created a forum account for my previous post.)</p>
<p>I'm working this. I was able to get my tests running. I can format the output, no problem.</p>
<p>But at some point I need to upload the output. Is there a handy tool that happens to come with the images we're using for uploading? I would prefer not to get too custom.</p>
<p>Thanks!</p></div>programmaxtag:help.appveyor.com,2012-11-13:Comment/465859862018-12-28T05:20:06Z2018-12-28T05:20:06Zcustom test framework<div><p>Hi Chris,</p>
<p>Do you mean <code>Tests</code> tab for AppVeyor build? If yes, can your tests generate XML output compatible with any of formats described <a href="https://www.appveyor.com/docs/running-tests/#pushing-real-time-test-results-to-build-console">here</a>?</p>
<p>Or you want to upload test results to some external location?</p>
<p>Ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/465859862019-01-02T00:56:43Z2019-01-02T00:56:45Zcustom test framework<div><p>Hello again,</p>
<p>Happy New Year! And thank you for all the help you've been giving me.</p>
<p>I do indeed mean the Tests tab. I can get around to the XML output. My first goal is just to figure out how to upload. I wondered about potential tools but it looks like the docs you linked provided a way to create a .NET object from within a PowerShell script.</p>
<p>I'm trying to run a PowerShell script to upload an example XML file but am struggling with it. Would you mind helping me run this PowerShell script?</p>
<p>The output is here: <a href="https://ci.appveyor.com/project/ProgramMax/max/build/job/u3d1yby5ls2t3skk">https://ci.appveyor.com/project/ProgramMax/max/build/job/u3d1yby5ls...</a><br>
The pull request with a bunch of poorly-described commits (sorry) is here:<br>
<a href="https://github.com/ProgramMax/max/pull/83">https://github.com/ProgramMax/max/pull/83</a></p></div>programmaxtag:help.appveyor.com,2012-11-13:Comment/465859862019-01-02T10:12:53Z2019-01-02T10:12:54Zcustom test framework<div><p>I spent a bit more time on this and realized I'm struggling to get environment values inside a PowerShell script. I've tried $($env:APPVEYOR_BUILD_FOLDER), $env:APPVEYOR_BUILD_FOLDER, $(APPVEYOR_BUILD_FOLDER), and %APPVEYOR_BUILD_FOLDER%.</p></div>programmaxtag:help.appveyor.com,2012-11-13:Comment/465859862019-01-03T11:45:08Z2019-01-03T11:45:08Zcustom test framework<div><p>I forked your repo and was able to upload your sample junit test results file: <a href="https://ci.appveyor.com/project/IlyaFinkelshteyn/max/builds/21354958">https://ci.appveyor.com/project/IlyaFinkelshteyn/max/builds/21354958</a></p>
<p>Please let us know if this helps.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/465859862019-01-03T16:25:57Z2019-01-03T16:25:58Zcustom test framework<div><p>Thank you. I followed your example of accessing the values inside the AppVeyor yaml file and everything is now working as expected.</p>
<p>I assume if I wanted an external script I would have to set these values as environment variables.</p>
<p>Thank you again for your help. You can delete your fork if you wish. :)</p></div>programmaxtag:help.appveyor.com,2012-11-13:Comment/465859862019-01-03T20:18:36Z2019-01-03T20:18:36Zcustom test framework<div><p>Good, feel free to ping when needed!</p></div>Ilya Finkelshteyn