# \[Testee\] Stop on fail

**URL:** <https://forums.bitovi.com/t/testee-stop-on-fail/884>\
**Category:** Testing\
**Created:** [May 4, 2018, 9:24am UTC](https://forums.bitovi.com/t/testee-stop-on-fail/884 "2018-05-04T09:24:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarceloFonseca](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/marcelofonseca/32/347_2.png) [@MarceloFonseca](https://forums.bitovi.com/u/MarceloFonseca)\
**Post date:** [May 4, 2018, 9:24am UTC](https://forums.bitovi.com/t/testee-stop-on-fail/884/1 "2018-05-04T09:24:06Z")

</div>

Hello!

We currently have a testee setup (using Qunit) like:

const testPromise = testee.test([  
‘test1.html’,  
‘test2.html’,  
‘test3.html’  
]

And I would like to know if there’s any way to stop the testee execution if any of the tests fail.

I know that we can achieve it for a single QUnit suite with something like:

QUnit.testDone(function (details) {  
if (details.failed \> 0) {  
QUnit.config.queue.length = 0;  
}  
});

But if I assign this to a single suite I assume that others will still run.  
The main idea is to stop test execution as a whole.

Is it possible using testee configuration?

Thank you guys!
