Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-05-2008, 07:44 AM
Junior Member
 
Join Date: May 2008
Posts: 1
Default unit testing + zend

I'm having trouble integrating SimpleTest to the MVC framework that Zend uses. What's the best way to structure the unit tests?

Even if I have a folder for "tests", I can't actually access it through my browser due to the clean url's that Zend uses. For example, I can't just have:

http://localhost/tests/testfunction

without having a TestsController with a testfunctionAction(). Is this the best way to do it? Can someone tell me what is considered "best practice" in terms of FILE STRUCTURE? I realize that I can use a command line approach for SimpleTest, but I was kind of hoping to have a browser-based testing system.

Thanks for your time and help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-09-2008, 06:45 PM
Junior Member
 
Join Date: Mar 2008
Posts: 3
Default

I'm having the same issues, I'm getting lots of dependency issues when I try to require one of my controllers and it then tries to include other stuff...

This site has some info on it but it is for Php Unit not Simpletest.. I've yet to find anything that spells out how to properly setup the structure under Zend.

Automatic testing of MVC applications created with Zend Framework | Alex @ Net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:07 AM.