CodeIgniter abandoned - Unit Testing issues |
[eluser]drizz815[/eluser]
John, I started working as Neophyte describes but that just doesn't work. I'm not yet that familiar with CI but you can't just include say a CI model file and expect to be able to test what it does the way you can when working outside CI. I tried using the SimpleTester wrapper I found in the Wiki. I got that set up properly (the sample files worked). However, it works through the front controller which I didn't like. So then I tried the solution posted by Don Pinkster at http://ellislab.com/forums/viewthread/63602/. This ran the tests outside the application (that is, the tests only ran when you fed the test URL into the browser), it created an instance of CI within the tests but when I did it SimpleTest reported Bad Tests, no valid tests. Granted there may have been something amiss with my code, but I've been using SimpleTest for a while, tried lots of things to make it work. I could not for the life of me see why, if I could get it working well enough to generate that error, I couldn't get it to work properly. I then went back to the SimpleTester wrapper, but if I included a model file, I got CI's error message about not allowing direct access. I had a go at trying to work out from scratch what one had to do but I'm far from being a brilliant coder and gave up when I ran into CI's no direct access message. |
Messages In This Thread |
CodeIgniter abandoned - Unit Testing issues - by El Forum - 04-04-2008, 01:04 AM
CodeIgniter abandoned - Unit Testing issues - by El Forum - 04-04-2008, 02:16 AM
CodeIgniter abandoned - Unit Testing issues - by El Forum - 04-04-2008, 02:49 AM
CodeIgniter abandoned - Unit Testing issues - by El Forum - 04-04-2008, 03:21 AM
CodeIgniter abandoned - Unit Testing issues - by El Forum - 04-04-2008, 03:28 AM
CodeIgniter abandoned - Unit Testing issues - by El Forum - 04-04-2008, 04:23 AM
CodeIgniter abandoned - Unit Testing issues - by El Forum - 04-04-2008, 12:48 PM
CodeIgniter abandoned - Unit Testing issues - by El Forum - 04-06-2008, 10:25 AM
CodeIgniter abandoned - Unit Testing issues - by El Forum - 04-07-2008, 07:19 AM
CodeIgniter abandoned - Unit Testing issues - by El Forum - 04-11-2008, 11:13 PM
CodeIgniter abandoned - Unit Testing issues - by El Forum - 04-12-2008, 12:41 AM
CodeIgniter abandoned - Unit Testing issues - by El Forum - 04-12-2008, 09:29 PM
CodeIgniter abandoned - Unit Testing issues - by El Forum - 04-12-2008, 11:28 PM
CodeIgniter abandoned - Unit Testing issues - by El Forum - 04-14-2008, 12:26 AM
CodeIgniter abandoned - Unit Testing issues - by El Forum - 04-14-2008, 07:19 AM
|