How do I document PHPUnit Tests Results? -
other use of --testdox documenting, there way can give more detailed report phpunit tests?
maybe not direct answer question consider using bdd framework behat. tests written in plain human language express system behaviour , can read non-technical people.
example introducing bdd article:
story: account holder withdraws cash account holder want withdraw cash atm can money when bank closed scenario 1: account has sufficient funds given account balance \$100 , card valid , machine contains enough money when account holder requests \$20 atm should dispense \$20 , account balance should \$80 , card should returned scenario 2: account has insufficient funds given account balance \$10 , card valid , machine contains enough money when account holder requests \$20 atm should not dispense money , atm should there insufficient funds , account balance should \$20 , card should returned scenario 3: card has been disabled given card disabled when account holder requests \$20 atm should retain card , atm should card has been retained
Comments
Post a Comment