When I enable CF debugging using TestBox I get an ...
# box-products
p
When I enable CF debugging using TestBox I get an exception related to a FusionReactor object. It's not a problem for me, but I would like to understand if I am wrong to define something in my unit_test. I use component extends="mxunit.framework.TestCase" Does it happen to you too?
b
@paolo79 I think CF Debugging is showing you all errors, even ones which were caught in a try/catch
We test for the class in a try/catch and if it isn't found, code coverage is disabled.
I'm not entirely sure why the debugger is showing you even errors which were successfully handled, but it sounds annoying of for you to see them 😆
But basically you can ignore this. There is nothing wrong with it and CF is just being a little overzealous IMO in showing it to you.
It's a normal part of the internals of testbox to detect what's installed on the system
p
Thanks for your response @bdw429s. Can't this check be disabled when the coverageEnabled parameter is false?
b
Possibly, but I think it just runs on init if the cfc before the config is parsed so the check can be the safe add happen only once.
You wouldn't have noticed or cared if the debugger wasn't showing it for some reason. 😁