PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun Oct 22, 2017 7:31 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Testing Links
PostPosted: Wed Jun 15, 2005 7:47 pm 
Offline
DevNet Master

Joined: Thu Jan 30, 2003 9:26 pm
Posts: 2893
Location: Glasgow, Scotland
Testing frameworks for php

SimpleTest, docs, and an interesting blog can be found on http://www.lastcraft.com.
PhpUnit: http://www.phpunit.de/en/index.php

Articles

Marcus Baker: test driven design
Introduction to SimpleTest by Perrick Penet: http://www.onpk.net/talks/fosdem2005/introduction_simpletest.html
PhpLondonWiki, including the beer example: Unit Testing
Fowler on integration v state-based testing Mocks aren't Stubs

Other sites

TestDriven http://www.testdriven.com

"Test driven development (TDD) is emerging as one of the most successful developer productivity enhancing techniques to be recently discovered. The three-step: write test, write code, refactor – is a dance many of us are enjoying. This site is dedicated to promoting techniques, tools, and general good will in the test-driven community.
- Eric Vautier, David Vydra

books

php|architect's Guide to PHP Design Patterns by Jason E. Sweat http://www.phparch.com/shop_product.php?itemid=96.
Design patterns often seen in php apps. Most (all?) classes are accompanied by unit tests which should help to give you an idea what tests look like. Also contains an appendix on SimpleTest testing practices.


Last edited by McGruff on Mon Aug 08, 2005 1:02 am, edited 9 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 15, 2005 7:55 pm 
Offline
Site Admin
User avatar

Joined: Tue Dec 23, 2003 3:10 am
Posts: 11470
Location: Toronto
Nice Test Forum :) :twisted: :twisted: :twisted: :twisted:


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 19, 2005 3:56 am 
Offline
PHP Evangelist
User avatar

Joined: Tue Aug 13, 2002 3:35 pm
Posts: 3547
Location: Calgary, Canada
Here is a good link: http://www.agiledata.org/essays/tdd.html


Top
 Profile  
 
 Post subject: More testing resources
PostPosted: Thu May 18, 2006 6:07 am 
Offline
Forum Newbie

Joined: Tue Mar 21, 2006 7:23 am
Posts: 7
Location: Switzerland
You will find interesting articles on the theory and practice of software testing in the HTML archives of the Methods & Tools newsletter: http://www.methodsandtools.com/archive/archive.php


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 07, 2007 7:35 pm 
Offline
Forum Commoner

Joined: Sat May 05, 2007 6:03 am
Posts: 42
xUnit Test Patterns: Refactoring Test Code, started reading this book the other day, not even near finish, but I'm already willing to recommend it. Not PHP specific, no PHP code samples and PHPUnit is actually mention only in the Appendix. C# and Java seem to be the default in this book. However, the book isn't about the code but patterns, smells and other things you would rather not learn the hard way.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 08, 2007 3:51 am 
Offline
DevNet Master
User avatar

Joined: Tue Nov 02, 2004 6:43 am
Posts: 2704
Location: Ireland
Something that's more an update. Simpletest now has a website over at:
http://www.simpletest.org

I'll have to look up Arawn's recommended book...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 17, 2007 4:23 am 
Offline
Forum Newbie

Joined: Tue Oct 16, 2007 10:34 am
Posts: 1
I have already read the ebook which arawn mentioned in his post - well its good for newbies but as mentioned by arawn you wont learn something entirely new in it.


Top
 Profile  
 
 Post subject: Re: Testing Links
PostPosted: Fri May 23, 2008 9:17 am 
Offline
DevNet Master
User avatar

Joined: Mon Sep 19, 2005 6:24 am
Posts: 3587
Location: London
a nice (and short) article describing TDD:
http://jamesshore.com/Blog/Microsoft-Ge ... Wrong.html


Top
 Profile  
 
 Post subject: Re: Testing Links
PostPosted: Sun Oct 26, 2008 6:30 am 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
TDD anti Patterns ( what NOT to do )
http://blog.james-carr.org/2006/11/03/t ... -patterns/


Top
 Profile  
 
 Post subject: Re: Testing Links
PostPosted: Sat Nov 22, 2008 6:44 am 
Offline
Forum Contributor

Joined: Sat May 03, 2008 8:43 am
Posts: 268
http://googletesting.blogspot.com/


Top
 Profile  
 
 Post subject: Re: Testing Links
PostPosted: Mon Mar 30, 2009 6:26 pm 
Offline
The Ninja Space Mod
User avatar

Joined: Fri Aug 05, 2005 1:53 pm
Posts: 6424
Location: Paradise, CA
I just found this excellent "Guide to writing testable code": http://misko.hevery.com/2008/11/24/guid ... able-code/

And here is a PDF version of it: http://misko.hevery.com/attachments/Gui ... 20Code.pdf

Honestly it is really good, check it out.


Top
 Profile  
 
 Post subject: Re: Testing Links
PostPosted: Mon Mar 30, 2009 8:30 pm 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
Luke wrote:
Honestly it is really good, check it out.

"dont look for things, ask for things" ..... thats good right there


Top
 Profile  
 
 Post subject: Re: Testing Links
PostPosted: Sat Apr 04, 2009 11:45 am 
Offline
Forum Newbie

Joined: Wed Mar 25, 2009 10:50 pm
Posts: 4
Model-Based Testing has been around for a few years. Check out a book by Mark Utting: Practical Model-Based Testing: A Tools Approach. A good example of such tool for testing web applications is TestOptimal (http://TestOptimal.com/).

It may seem hard to justify of spending time creating the system model, but if you look at the overall testing process, you actually gain efficiency at the end especially if you are in the agile development process which has a much shorter cycle and thus regression testing needs to be done a lot more often and your testing scripts need to be changed a lot frequently. You can find many literatures on Model-Based Testing on the internet or you can just go to http://TestOptimal.com/ in the support section, there are a few articles and presentations that cover the basics of Model-Based Testing.


Top
 Profile  
 
 Post subject: Re: Testing Links
PostPosted: Wed Apr 15, 2009 3:25 am 
Offline
DevNet Master

Joined: Wed Feb 11, 2004 4:23 pm
Posts: 4872
Location: Palm beach, Florida
http://googletesting.blogspot.com/

http://misko.hevery.com/2008/08/01/circ ... injection/ - circular dependencies ( found thru above link )


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group