Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter 2.1 and SimpleTest - Conducting a simple test
#1

[eluser]Unknown[/eluser]
Hi all,

I am currently using CI 2.1 and Netbeans 7.0 as my devleopemnt IDE. I would like to create some simple unit testing using SimpleTest. In particular the methodology used by Eric Barnes and his code found at Git Hub CodeIgniter-SimpleTest.

I have created a new CI application using Netbeans 7.0 and connected to my database (which contains 1 table called schools with the typical schema schoolid, schoolname, schooladdress etc.). I have created a controller (simpleapp), which loads a model called schools_model. The schools_model gets all the schools using a method called getAll(). Another method called getSchoolName(id), accepts a school ID and returns the school name.

The controller then loads a view called schools_view to display all the schools. Pretty simple stuff.......... and it works flawlessly, displaying all the schools when I point my browser to

http://localhost/SimpleTest/simpleapp/getAllSchools

(I am also using a .htaccess file)

My question is this..........

How do I get SimpleTest to work using the Git hub code supplied by Eric? I have followed Eric's set-up advise but don't know what URL to point to to create the screen dumps he provides. I have maintained the directory structure Eric suggests but haven't had any success. Eric suggest to point the browser to yoursite.com/unit_test.php, but I get a
404 page not found error for http://localhost/SimpleTest/unit_test.php

I would appreciate any direction in this area.





Theme © iAndrew 2016 - Forum software by © MyBB