Answer by Mitchell McKenna for Is it possible to unit test View's in CodeIgniter?
August 28 2010, 9:15pm
Most likely you don't need to unit test your Views. If you've got code in your Views that needs unit testing, most likely that code belongs in a related controller/library/etc. Views should mainly just display data it receives from the controller; check for valid data and errors before it gets to the View.
See related post: Unit Testing CodeIgniter with Simpletest