I want to tweak CakePHP's web tests. I find it absolutely not useful
that they continue to run after an assertion failed, because most of
the time when one assertion fails, then the rest of the tests won't
pass, too.
So I wonder where to "hook" into the code. I have already discovered
the skip() method, and I have added some functionality that the rest
of the tests are skipped when there has been a failure somewhere. This
already saves me a lot of time.
But now I noticed that web tests discover some failures of CakePHP
themselves, so they don't seem to be completely decoupled from
CakePHP. I.e. when a behavior can't be loaded, then when running a web
test I get the appropriate error displayed:
---------------------
Missing Behavior File
Error: The Behavior file app/models/behaviors/allowance_checkable2.php
can not be found or does not exist.
Error: Create the class below in file: app/models/behaviors/
allowance_checkable2.php
<?php
class AllowanceCheckable2Behavior extends ModelBehavior {
}
?>
Notice: If you want to customize this error message, create app/views/
errors/missing_behavior_file.ctp
---------------------
So I wonder where the web test and CakePHP so that the web test aborts
in case of such an error of CakePHP and displays the error? Maybe I
could "hook" into this interface to add some functionality of my own?
Thanks for any help
Josh
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment