tag:help.appveyor.com,2012-11-13:/discussions/problems/12010-unit-test-doesnt-find-exeAppVeyor: Discussion 2018-08-25T02:26:47Ztag:help.appveyor.com,2012-11-13:Comment/447125032018-02-12T14:47:26Z2018-02-12T14:47:29ZUnit test doesn't find exe<div><p>Hi! I sat this weekend and tried to set up appveyor for my project but I could get unit testing to work. Not sure if I'm misunderstanding some concept or if I've just misconfigured something.</p>
<p>I've posted the question at SO but figured I'll post it here too. Feel free to cross-post the answer there.<br>
<a href="https://stackoverflow.com/questions/48733140/how-do-i-run-a-custom-c-unit-test-with-appveyor">https://stackoverflow.com/questions/48733140/how-do-i-run-a-custom-...</a></p>
<p>Here's my project:<br>
<a href="https://ci.appveyor.com/project/Srekel/sralloc/build/job/4i936io65kd2wod9">https://ci.appveyor.com/project/Srekel/sralloc/build/job/4i936io65k...</a></p>
<p>And repo here:<br>
<a href="https://github.com/Srekel/sralloc">https://github.com/Srekel/sralloc</a></p>
<p>As you can see in the build log, an exe is outputted to:<br>
C:\projects\sralloc\examples\Build\x64_Debug\unittest.exe</p>
<p>And I want to just run it and consider it a success if it returns 0 and failure if it returns 1. But I'm not sure how to set up my yml config because I get this:</p>
<p>%APPVEYOR_BUILD_FOLDER%\examples\build\%PLATFORM%_%CONFIGURATION%\unittest.exe The system cannot find the path specified.<br>
Command exited with code 1</p></div>Anders Elfgrentag:help.appveyor.com,2012-11-13:Comment/447125032018-02-12T18:32:07Z2018-02-12T18:32:07ZUnit test doesn't find exe<div><p>H Anders,</p>
<p>Thank you for detailed problem description. Just answered on SO.</p>
<p>Ilya.</p></div>Ilya Finkelshteyn