News Feed
Sections




News Archive
feed this:

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

Padraic Brady's Blog:
PHP Mutation Testing With MutateMe
February 24, 2009 @ 10:20:54

Padraic Brady has posted about a library that he's developed to help with mutation testing in PHP - MutateMe. What's mutation testing? Padraic explains,

Mutation Testing is basically testing...for tests. It ensures that your tests are truly capable of detecting errors and problems with the source code. It does this by mutating the source code itself (using ext/runkit) in such a way that an error is created in the code. If your tests detect the error, all is well with the world. If your tests do not detect the error...well, you better add a new test that does.

He mentions how it compares to code coverage and goes through the entire process you'll need to get MutateMe up and running - the download (or PEAR install), creating the extension, using the command line tool and the results of an example run of the client against a few tests.

0 comments voice your opinion now!
phpunit test unittest mutation codecoverage tutorial mutateme


Padraic Brady's Blog:
PHPMutagen Mutation Testing for PHP5
December 05, 2007 @ 09:32:00

In another behavior-driven development related post on his blog, Padraic Brady talks about mutation testing and a library he's put together to support it in PHP - PHPMutagen.

As I said in my previous entry I was thinking about how to write a Mutation Testing engine. The "braindump" was to use PHP's built in Tokenizer to break down a class file into digestible pieces which could be mutated, and then reconstructed into a mutated file. Once you allow for a working copy of the original source (let's not mutate the original!) it turned out to be a reasonable approach.

He's not releasing it just yet ("don't get too excited until I find some time to scan through it again") but he does share some sample output from his test run - one instance where all is well and the other where one mutant "escapes" and causes an exception.

0 comments voice your opinion now!
mutation testing php5 phpmutagen behavior development mutation testing php5 phpmutagen behavior development


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


Sebastian Bergmann's Blog:
Update on Mutation Testing
July 26, 2007 @ 07:54:00

Sebastian Bergmann has provided a pointer to the update Mike has posted concerning the Google Summer of Code project he's working on - implementing mutation testing in PHPUnit.

From Mike's update:

The most recent version committed to the mutation_testing branch is in a testable state. I would encourage anyone interested to try out the new mutation testing feature in this branch.

You can get complete information about the project - its methods and goals - from this page on the PHPUnit wiki. If you'd like to get this new code a try and see what his mutation testing is all about, here's a link to the subversion repository to grab the latest copy.

0 comments voice your opinion now!
mutation testing phpunit google summerofcode project mutation testing phpunit google summerofcode project


Sebastian Bergmann's Blog:
PHPUnit Status Update
June 25, 2007 @ 08:22:00

Sebastian Bergmann has posted an update of the status of the PHPUnit project to his blog today including feature additions to PHPUnit 3.1 and ones being added to other branches.

The last weeks have been busy, but now I want to take the time to finally give you an update on the status of PHPUnit. The development of PHPUnit 3.1 is progressing nicely, about the only thing missing is finishing the documentation for all the new features

Among these new features are things like:

0 comments voice your opinion now!
phpunit status project mockobject selenium templatemethod database mutation phpunit status project mockobject selenium templatemethod database mutation


Sebastian Bergmann's Blog:
Google Summer of Code 2007
April 16, 2007 @ 07:52:00

Another mentor for another Google Summer of Code project has been announced and Sebastian Bergmann will be mentoring Mike Lewis as he adds mutation testing for PHPUnit.

Sebastian quotes a definition of "mutation testing" as:

Mutation Testing, or Automated Error Seeding, is an approach where the testing tool makes some change to the tested code, runs the tests, and if the tests pass displays a message saying what it changed.

The key difference is that it makes it easier to run a series of tests rather than just one at a time, aiding in more complex testing abilities. Check out this page on the PHPUnit site for more information.

0 comments voice your opinion now!
googlesummerofcode2007 phpunit mutation testing unittesting googlesummerofcode2007 phpunit mutation testing unittesting


Sebastian Bergmann's Blog:
Ideas for PHPUnit Projects
February 26, 2007 @ 11:26:00

Always looking forward to the future of PHPUnit, Sebastian Bergmann has started gathering some ideas for future additions to the project:

I started to collect ideas for features that I would like to see in PHPUnit but currently lack the time to implement myself.

The two listed in this post are:

  • Mutation testing - an approach where the testing tool makes some change to the tested code, runs the tests, and if the tests pass displays a message saying what it changed
  • Web Interface for Test Result Database - output viewer for the database logging PHPUnit is now capable of.
Looking to help out? Let him know!

0 comments voice your opinion now!
phpunit project future mutation unittest webinterface test result database phpunit project future mutation unittest webinterface test result database



Community Events





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


threedevsandamaybe developer series api laravel introduction list community interview language framework podcast release install bugfix application code library configure wordpress

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