Testing Links
Moderator: General Moderators
Testing Links
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.
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.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Here is a good link: http://www.agiledata.org/essays/tdd.html
More testing resources
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
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.
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- 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...
http://www.simpletest.org
I'll have to look up Arawn's recommended book...
Re: Testing Links
a nice (and short) article describing TDD:
http://jamesshore.com/Blog/Microsoft-Ge ... Wrong.html
http://jamesshore.com/Blog/Microsoft-Ge ... Wrong.html
Re: Testing Links
TDD anti Patterns ( what NOT to do )
http://blog.james-carr.org/2006/11/03/t ... -patterns/
http://blog.james-carr.org/2006/11/03/t ... -patterns/
Re: Testing Links
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.
And here is a PDF version of it: http://misko.hevery.com/attachments/Gui ... 20Code.pdf
Honestly it is really good, check it out.
Re: Testing Links
"dont look for things, ask for things" ..... thats good right thereLuke wrote:Honestly it is really good, check it out.
Re: Testing Links
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.
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.
Re: Testing Links
http://googletesting.blogspot.com/
http://misko.hevery.com/2008/08/01/circ ... injection/ - circular dependencies ( found thru above link )
http://misko.hevery.com/2008/08/01/circ ... injection/ - circular dependencies ( found thru above link )