News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Padraic Brady's Blog:
Mutation Testing Brain Dump
November 30, 2007 @ 10:26:00

Padraic Brady has made a post about some of the mutation testing thoughts running through his head for the Behaviour-Driven Development framework he's been working on - PHPSpec.

Mutation Testing is like testing, for tests. The idea is actually quite simple. Mutation testing adds small changes to your source code on the assumption that changing something, will most likely break it, which in turn means at least one test/spec should fail. [...] The reason why it's useful it that it gets around the problem of being over reliant on code coverage - just because some code executes when running tests, doesn't prove the tests will detect problems with it!

He wants to create a way that doesn't rely on external dependencies and is looking at working with the tokenizer functions native to PHP. He includes two examples of the way he's thinking - an example of simple token output and a way to go "backwards" to recreate the original source code.

0 comments voice your opinion now!
mutation testing unittest phpspec tokenizer mutation testing unittest phpspec tokenizer


blog comments powered by Disqus

Similar Posts

Derick Rethans' Blog: PHP 4.4.5RC1 available for testing

Zend Developer Zone: Acceptance Testing of Web Applications with PHP

SitePoint PHP Blog: Help Develop PHP: 5.6 RC1 on Homestead

Andi Gutmans' Blog: Zend Framework 1.6 Featuring Dojo, SOAP, Testing, and more...

NetTuts.com: Hands-On Unit Testing With PHPUnit (Screencast)


Community Events





Don't see your event here?
Let us know!


opinion tips framework api update language interview introduction symfony series release zendserver unittest podcast install package laravel community deployment library

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework