Welcome Guest, Not a member yet? Register   Sign In
Unit Testing
#1

[eluser]elmne[/eluser]
The User guide here http://ellislab.com/codeigniter/user-gui...sting.html
gives information on Unit Testing.

It says,
Quote:You can either display results after each test, or your can run several tests and generate a report at the end.

To run a full report of all tests, use this:

echo $this->unit->report();


But it does not clarify how this is implemented.

If i want to generate a test for all functions in a controller, do i create a function to hold the code
Code:
echo $this->unit->report();

and then access this by browsing to teh path? Or do i need a view on which the report results table will be displayed?




Theme © iAndrew 2016 - Forum software by © MyBB