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');
?>
Bugfixes
- Symfony2 kernel is rebooted on each run. That make Symfony2 tests less dependent on each other.
seeFillField
method now accepts label as parameter.- Encoding issues for non-latin chars in output fixed. Unfortunately this fix will work only in PHP 5.4.
seeLink
now doesn't return false positive results
Update
redownload your codeception.phar
for update:
wget http://codeception.com/codecept.phar -O codecept.phar
for composer version
$ php composer.phar update