|
| 1 | +--- |
| 2 | +title: Codeception 1.5.5 and Roadmap Announced |
| 3 | +layout: post |
| 4 | +date: 2013-02-28 01:03:50 |
| 5 | +--- |
| 6 | + |
| 7 | +Yes, here is a new version of Codception with more features and bugfixes in it. |
| 8 | +We have a flexible relase cycle, so the new version comes when we have a set of updates that you might be needed. |
| 9 | +We want to say "thank you" for all contributors, and for everyone who helps making Codeption better. |
| 10 | +It's always nice to get pull requests or [follow discussions](https://github.com/Codeception/Codeception/issues/) in our issues secition. |
| 11 | +So let us sum up the work was done during last 2 weeks and share it with you. |
| 12 | + |
| 13 | +### Use Codeception in Different Places |
| 14 | + |
| 15 | +All codeception commands got `-c` option to provide a custom path to tests. |
| 16 | +The exception is `bootstrap` command. It accepts a custom directory as a second argument: |
| 17 | + |
| 18 | +{% highlight bash %} |
| 19 | +php codecept.phar bootstrap ~/mynewproject |
| 20 | +php codecept.phar generate:cept acceptance Login -c ~/mynewproject |
| 21 | +php codecept.phar generate:test unit MyFirstTest -c ~/mynewproject |
| 22 | +php codecept.phar run -c ~/mynewproject |
| 23 | +php codecept.phar generate:scenarios acceptance -c ~/mynewproject |
| 24 | +{% endhighlight %} |
| 25 | + |
| 26 | +Alternatively you may specify path to `codeception.yml` file in `-c` option: `php codecept.phar run -c ~/mynewproject/codeception.yml` |
| 27 | + |
| 28 | +Thus, you don't need to keep your `codecept.phar` in the root of your project anymore. Use `-c` option and one local runner for all your projects. |
| 29 | + |
| 30 | +### Skipping Tests |
| 31 | + |
| 32 | +Skipping and marking tests of incomplete was improved. We did a new solid implementation for it (it was very basic in `1.5.4`). |
| 33 | +Now If a test is marked to skip, no modules will be touched. |
| 34 | + |
| 35 | +{% highlight php %} |
| 36 | +<?php |
| 37 | +$scenario->skip('this is not ready yet, move along'); |
| 38 | + |
| 39 | +$I = new WebGuy($scenario); |
| 40 | +$I->wanTo('do something, but I would rather not'); |
| 41 | +$I->amOnPage('/'); |
| 42 | +//..... |
| 43 | +?> |
| 44 | +{% endhighlight %} |
| 45 | + |
| 46 | +This feature required to rework some core classes (like Step and TestCase and Scenario) but hopefully we simplified our code. |
| 47 | + |
| 48 | +### Bugfixes |
| 49 | + |
| 50 | +* `acceptPopup` with Selenium 2 does not trigger Exception any more |
| 51 | +* error handling was improved to skip blocked with `@` alerts, yet to throw `ErrorException` for notices, warnings, errors. |
| 52 | +* ZombieJS configuration was fixed. Now the `url` parameter is required to specify app's local url. |
| 53 | +* REST `seeStatusCodeIs` method works correctly with Symfony2 now. |
| 54 | + |
| 55 | +### Update |
| 56 | + |
| 57 | + [redownload](http://codeception.com/thanks.html) your `codeception.phar` for update: |
| 58 | + |
| 59 | +{% highlight bash %} |
| 60 | +wget http://codeception.com/codecept.phar -O codecept.phar |
| 61 | +{% endhighlight %} |
| 62 | + |
| 63 | +for composer version |
| 64 | + |
| 65 | +{% highlight bash %} |
| 66 | +$ php composer.phar update |
| 67 | +{% endhighlight %} |
| 68 | + |
| 69 | +## Roadmap |
| 70 | + |
| 71 | +For the first time we will announce the roadmap for Codeception. Actually we need your opinion: what features you'd like to see in new releases, and what things can be postponed. The list below is not a precise plan, but just a list of features we have in mind: |
| 72 | + |
| 73 | +* Make a PageObject pattern first-class citizen in Codeception. Add generators and guides to use PageObjects (for acceptance tests). |
| 74 | +* Multiple sessions for tests execution ([see discission on GitHub](https://github.com/Codeception/Codeception/issues/154)) |
| 75 | +* **Silex**, **Laravel 4**, **Zend Framework 2**, **Drupal 8**, **Phalcon** integrations. The key problem here: we can't do this on our own. We need a real users of these frameworks, to create integration and test it on their projects. We have reworked [functional testing guide](http://codeception.com/docs/05-FunctionalTests) to help you with this. Also use GitHub or personal contacts if you want to make a module. |
| 76 | +* **Scenario Unit Tests to be rethinked**. We have 2 options here: dump scenario driven unit tests (or mark them as deprecated) or rework them. Actually we need your real opinion. [Here is an example of what new Cests may look like](https://gist.github.com/DavertMik/5042537). They will dramatically improve the way you work with mocks and stubs in PHP. But will you use it? Please, let us know what you think. |
| 77 | + |
| 78 | +To summarize: we'd appreciate contributions, feedbacks and ideas for next releases. |
0 commit comments