This weblog will examine troubleshooting TestBox Code protection utilizing FusionReactor.
TestBox is a strong testing framework for ColdFusion (CFML) that many builders depend on for producing each unit and behavior-driven (BDD) assessments for his or her internet purposes.
What’s Code Protection?
Code Protection is a metric that gives the share of your supply code which is included within the assessments that you simply write. In case your code protection rating is just too low, it is often an indicator that you need to write extra assessments. Many builders depend on code protection statistics to assist decide how full their assessments are.
TestBox helps code protection experiences if in case you have a licensed copy of FusionReactor linked to the examined internet utility. The simplest method to do that is by way of Commandbox.
I lately bumped into points with code protection reporting whereas working assessments for a ColdBox utility I used to be creating for a consumer. My assessments have been executed efficiently, however the code protection statistics weren’t updating, and the knowledge displayed didn’t mirror my precise code. The abstract outcomes confirmed information from the ColdBox framework which ought to be ignored by default.