<p>I am trying to be a "good" programmer and have unit tests for my ColdFusion application but haven't been able to find a code coverage tool that can tie into the test that I'm using. For those of you who do unit tests on your ColdFusion code, how have you approached this problem?</p>

[{'answer_id': 30648, 'author': 'Adam Davis', 'author_id': 2915, 'author_profile': 'https://Stackoverflow.com/users/2915', 'pm_score': 1, 'selected': True, 'text': '<p><a href="http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:53046" rel="nofollow noreferrer">Many</a> <a href="http://www.pbell.com/index.cfm/2006/10/20/What-is-Code-Coverage-Analysis--and-why-should-you-care" rel="nofollow noreferrer">have</a> <a href="http://coolskool.blog-city.com/what_coldfusion_tools_do_you_want.htm" rel="nofollow noreferrer">asked</a>, but to date there remains no ColdFusion code coverage tool.</p>\n\n<p>The latest ColdFusion features .NET integration in addition to J2EE integration, so if you require code coverage metrics (ie, customer requirements) then (aside from choosing something other than ColdFusion) you might define what parts need such coverage and break them out into .NET or J2EE objects which you can profile with readily available tools.</p>\n\n<p>Alternately, you can do some analysis yourself - use a parser to insert <a href="http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&amp;file=00001221.htm" rel="nofollow noreferrer">cftrace</a> tags after every control statement and then parse the results.</p>\n\n<p>Lastly, ColdFusion does have some <a href="http://www.bennadel.com/blog/116-Finding-Template-Execution-Stack-in-ColdFusion.htm" rel="nofollow noreferrer">basic stack trace</a> ability - I don\'t know if it goes deeper than that, but it\'s worth exploring to see what you can parse from that.</p>\n\n<p>I hope this helps!</p>\n\n<p>-Adam Davis</p>\n'}, {'answer_id': 11896026, 'author': 'some_other_guy', 'author_id': 729242, 'author_profile': 'https://Stackoverflow.com/users/729242', 'pm_score': 1, 'selected': False, 'text': '<p>With ColdFusion Builder you can use Rancho for code coverage.</p>\n\n<p><a href="http://forta.com/blog/index.cfm/2012/5/25/ColdFusion-Code-Coverage-With-Rancho" rel="nofollow">http://forta.com/blog/index.cfm/2012/5/25/ColdFusion-Code-Coverage-With-Rancho</a></p>\n'}]
['https://Stackoverflow.com/questions/30594', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3274/']