Write and execute a test for an existing app
in less then a 5 mins!
Published on February 15, 2013
Today we are releasing Codeception 1.5.4. This is minor bugfixing release consisting of GitHub issues. And a small yet awaitied feature introduced: ability to skip and mark Cepts as incomplete.
It’s pretty simple, though.
<?php
$scenario->skip();
$I = new WebGuy($scenario);
$I->wanTo('do something, but I would rather not');
$I->amOnPage('/');
//.....
?>This makes this test to be skipped. Similarly it can be marked as incomplete.
<?php
$scenario->incomplete();
$I = new WebGuy($scenario);
$I->wanTo('do something, but I would rather not');
$I->amOnPage('/');
//.....
?>The skip and incomplete methods can take one argument, that descrines a reason why this tests were marked this way.
<?php
$scenario->skip('waiting for new markup');
$scenario->incomplete('welcome page appearence not tested');
?>seeFillField method now accepts label as parameter.seeLink now doesn’t return false positive results redownload your codeception.phar for update:
wget https://codeception.com/codecept.phar -O codecept.pharfor composer version
$ php composer.phar update