background preloader

Behat - BDD in PHP

Behat - BDD in PHP

fabpot/Sismo - GitHub Mutation Testing, un pas de plus vers la perfection Il n’est plus à prouver l’utilité des tests unitaires. Ils sont essentiels dans la conception d’une application de qualité. Mais, savons-nous quantifier leur pertinence, leur qualité ? Un indicateur de couverture du code par les tests à 100%, ne signifie pas du code 100% testé. Voici une technique qui vous permettra d’accorder plus de confiance à vos tests. Le processus de cette technique se déroule en deux grandes étapes : la génération de mutants, puis le carnage de ceux-ci. Génération de mutant Cette étape consiste à générer des classes mutantes à partir de vos classes métiers sources. Premièrement, le code métier sur lequel vous souhaitez évaluer la pertinence de vos tests. Deuxièmement, un « pool » de mutations possibles. + ► -* ► />= ► ==true ► false.la suppression d’une instructionetc. La génération à proprement parler consiste à parcourir toutes les instructions de votre code métier et pour chacune déterminer si des mutations sont applicables. Le carnage des mutants ! Bilan / analyse

Test management tool = TestLink Test Automation Fx - UI Testing with Visual Studio CLIF - Home Page Unit Testing for PHP Tsung Radview - Load Testing, Stress Testing and Performance testing tools The Grinder, a Java Load Testing Framework PHP Mutation Testing With MutateMe - Maugrim The Reaper's Blog Every testing framework supports Stubs and Mock Objects, well…most of them. No wait, only one really does! SimpleTest. Yes, PHPUnit has a whole chapter on the topic – but let’s just say it’s implementation is more than a little broken. The side effect of SimpleTest hogging the only true working Mock Object implementation has been an overwhelming de-emphasis in using Mock Objects in PHP. To that end, and right on the back of my previous MutateMe release, I put my considerable and legendary talents (which exist somewhere between my overweening ego, and my dictionary of GTA IV phone numbers) to work to create Mockery. You can download the initial PEAR package release of 0.1.0alpha from or pull from git using the clone URL on the Github.com page at Update #1: Support queries and/or comments and suggestions are also welcome to the Mockery mailing list at What Is Mockery? 1.

Aperiplus

Related: