GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — codeception.github.com/_posts/2013-03-10-codeception-1-5-6 at master · samdark/codeception.github.com Expand file tree/ Copy path2013-03-10-codeception-1-5-6More file actions 86 lines (65 loc) · 2.62 KB / Copy path2013-03-10-codeception-1-5-6File metadata and controls86 lines (65 loc) · 2.62 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 --- title: Codeception 1.5.6 layout: post date: 2013-03-10 01:03:50 --- Codeption 1.5.6 released with varous fixes to Selenium2 module (popups, screenshots) an other bugfixes. We added a bunch of tests for Selenium2 and they are runnng on TravisCI. Also, Codeception is now compatble with Symony 2.2. And few features were intrduced. Very basic implementation of fixtures was added to Db and Mongo modules. Now you can write something like: {% highlight php %} <?php // for Db $I->haveInDatabase('users', array('name' => 'davert')); // for Mongo $I->haveInCollection('users', array('name' => 'davert')); ?> {% endhighlight %} to add data for a test. For Db module, the inserted record will be cleaned up on text test, even If `cleanup` option is set to false. So `haveInDatabase` method cleans data after itself. Something similar exists for Doctrine2 module. Yet, it looks not like for Db and Mongo implementation: {% highlight php %} <?php $I->persistEntity(new \Entity\User, array('name' => 'Miles')); {% endhighlight %} ### Basic Fixtures Very basic implementation of fixtures was added to Db and Mongo modules. Now you can write something like: {% highlight php %} <?php // for Db $I->haveInDatabase('users', array('name' => 'davert')); // for Mongo $I->haveInCollection('users', array('name' => 'davert')); ?> {% endhighlight %} to add data for a test. For Db module, the inserted record will be cleaned up on text test, even If `cleanup` option is set to false. So `haveInDatabase` method cleans data after itself. Something similar exists for Doctrine2 module. Yet, it looks not like for Db and Mongo implementation: {% highlight php %} <?php $I->persistEntity(new \Entity\User, array('name' => 'Miles')); {% endhighlight %} ### Error Handling From now on you can set custom error handling parameters per suite or globally. {% highlight yaml %} class_name: WebGuy modules: enabled: [PhpBrowser, WebHelper] error_level: "E_ALL & ~E_STRICT & ~E_DEPRECATED" {% endhighlight %} Actually, `E_ALL & ~E_STRICT & ~E_DEPRECATED` is default error level for now. This may be changed in future. ### Bugfixes * popups and modals in Selenium2 are fully tested and work correctly now * screenshots in Selenium2 module is saved correctly * `seeInField` method works correctly even if field is not in form * fix to AMQP module to push message to queue * Symfony 2.2 compatibility ### Update [redownload](http://codeception.com/thanks.html) your `codeception.phar` for update: {% highlight bash %} wget http://codeception.com/codecept.phar -O codecept.phar {% endhighlight %} for composer version {% highlight bash %} $ php composer.phar update {% endhighlight %} |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |