tag:help.appveyor.com,2012-11-13:/discussions/problems/4583-build-hangs-on-successful-pester-testsAppVeyor: Discussion 2018-10-19T08:17:51Ztag:help.appveyor.com,2012-11-13:Comment/397622692016-04-29T16:30:37Z2016-04-29T16:30:37ZBuild hangs on successful Pester Tests<div><p>Will take a look.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/397622692016-04-29T17:30:24Z2016-04-29T17:30:24ZBuild hangs on successful Pester Tests<div><p>In your <code>appveyor.yml</code> that AWS Tools MSI was
installing asynchronously and for some reason build agent app was
exiting before notifying AppVeyor about build completion.</p>
<p>AWS SDK is already installed on build workers, so your
appveyor.yml could be just like this:</p>
<pre>
<code>install:
- cinst pester
build: false
test_script:
- ps: Import-Module AWSPowershell
- ps: $res = Invoke-Pester -Path ".\Tests" -OutputFormat NUnitXml -OutputFile TestsResults.xml -PassThru
- ps: (New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\TestsResults.xml))
- ps: if ($res.FailedCount -gt 0) { throw "$($res.FailedCount) tests failed."}</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/397622692016-04-30T06:36:47Z2016-04-30T06:36:47ZBuild hangs on successful Pester Tests<div><p>Hi Feodor,</p>
<p>It works as a charm! Thank you very much for your help and for
Appveyor to provide this awesome service!</p>
<p>Have a great day and Regards,<br>
Akos</p></div>akos