Some of our tests for a self written validation fr...
# testing
c
Some of our tests for a self written validation framework sometimes pass and sometimes fail (approx. 5% of all times), So I thought I'd run the tests multiple times in a loop and react to fails (e.g. display "2 out of 100 test iterations failed", log the results, etc) I thought listeners are the way to go, so I created a listener cfc that dumps some output to a file in
onSpecEnd()
, I tested the method by calling it directly and the file was created as expected. I then went on and passed the listener CFC to testbox:
testbox.run( callbacks=myLstener )
, but, it seems in this case
onSpecEnd()
is not executed. So maybe I am misunderstanding the concept and purpose of listeners? Unfortunately the Testbox docs don't say much about it, can somebody please tell me where to find more information or how to tackle my initial problem (tests sometimes failing, sometimes passing)? Thank you!