tag:help.appveyor.com,2012-11-13:/discussions/questions/1479-after_test-not-invoked-when-test-failsAppVeyor: Discussion 2018-08-25T01:57:51Ztag:help.appveyor.com,2012-11-13:Comment/374030152015-07-16T16:22:33Z2015-07-16T16:22:35Zafter_test not invoked when test fails<div><p>I've got a sample project with karma, which uses the
<code>after_test</code> hook with a node script that updates the
test view through <code>/api/tests/batch</code>.<br>
<a href="https://github.com/RainerAtSpirit/koComponentTests/blob/master/appveyor.yml">
https://github.com/RainerAtSpirit/koComponentTests/blob/master/appv...</a></p>
<p>Works fine as long as all test pass: <a href="https://ci.appveyor.com/project/RainerAtSpirit/kocomponenttests/build/20/tests">
https://ci.appveyor.com/project/RainerAtSpirit/kocomponenttests/bui...</a></p>
<p>If one of the tests fails <code>after_test</code> won't be
executed. Is there another hook that always gets executed
regardless of pass/fail status?</p></div>Rainertag:help.appveyor.com,2012-11-13:Comment/374030152015-07-16T18:13:41Z2015-07-16T18:13:41Zafter_test not invoked when test fails<div><p><code>on_finish</code> is called in the end of each build for
both successful and failed builds.</p></div>Feodor Fitsner