Skip to content

Commit f90054b

Browse files
author
davert
committed
1.6.5 blogpost
1 parent 31ad206 commit f90054b

2 files changed

Lines changed: 82 additions & 0 deletions

File tree

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
layout: post
3+
title: "Codeception 1.6.5: Debug and Bugfixes"
4+
date: 2013-08-09 22:03:50
5+
---
6+
7+
This is a minor release, mostly done to fix some bugs, you have encountered.
8+
Please, submit your Pull Requests for the bugs critical of yours. Most of pull requests are accepted, but if you will start a proposal, we can recommend you the best way to implement the fix.
9+
10+
## Selenium2 Compatiblity
11+
12+
Selenium2 server v.2.34 was released recently and to use it you need to update Codeception.
13+
If you use phar version, you should replace your old `codecept.phar` with new one.
14+
15+
## Debug Levels
16+
17+
At least one useful feature we prepared for you. Debug output in `PhpBrowser`, `Selenium2` and `REST` modules was extended with additional information that will be printed in `debug` mode:
18+
19+
![debug](/images/debug.png)
20+
21+
Tests would be much easier to debug when you see reponse headers, status codes and client cookies.
22+
Don't forget to add `--debug` to run your PhpBrowser acceptance tests, option to see that.
23+
24+
## Title Actions
25+
26+
Two basic yet useful actions were added to all web interaction modules.
27+
28+
{% highlight php %}
29+
<?php
30+
$I->seeInTitle('My Blog | My Post #1');
31+
$I->dontSeeInTitle('Her Blog');
32+
?>
33+
{% endhighlight %}
34+
35+
Should be useful, right?
36+
37+
## Single Test
38+
39+
Finally you can now execute a single test from `Cest` or `Test` testcases.
40+
41+
{% highlight bash %}
42+
php codecept.phar run tests/unit/UserModelTest.php:testSave
43+
{% endhighlight %}
44+
45+
In this case we will execute only `testSave` test out of `UserModelTest` TestCase.
46+
The same works for Cests. You may write only the beginning of test name, to execute it.
47+
48+
## Bugfixes
49+
50+
* fix to correct displaying of non-latin characters in html-report by **shofel**
51+
* `--xml` output for Codeception\TestCase\Test fixed
52+
* fixed `unserialize` error during code coverage. Anyway, if you ever seen this, you didn't setup coverage correctly.
53+
* Interactive console `console` command does not boot with error stacktrace.
54+
* Clearing only tables and not views in Db->cleanup()
55+
* PDO `$dbh` is now passed to Db module corretcly #414
56+
57+
## Release Plan
58+
59+
Also we are planning to get more stable releases, and follow the Semantic Versioning.
60+
This means that current stable branch is 1.6. If you submit patches and bugfixes, you should propose them into `1.6` branch. Experimental features should go to master.
61+
62+
63+
| release | branch | status |
64+
| ------- | -------- | -------- |
65+
| **Stable** | **1.6** | [![Build Status](https://secure.travis-ci.org/Codeception/Codeception.png?branch=1.6)](http://travis-ci.org/Codeception/Codeception) [![Latest Stable](https://poser.pugx.org/Codeception/Codeception/version.png)](https://packagist.org/packages/Codeception/Codeception)
66+
| **Development** | **master** | [![Build Status](https://secure.travis-ci.org/Codeception/Codeception.png?branch=master)](http://travis-ci.org/Codeception/Codeception) [![Dependencies Status](https://d2xishtp1ojlk0.cloudfront.net/d/2880469)](http://depending.in/Codeception/Codeception)
67+
68+
69+
### Update
70+
71+
[redownload](http://codeception.com/thanks.html) your `codeception.phar` for update:
72+
73+
{% highlight bash %}
74+
wget http://codeception.com/codecept.phar -O codecept.phar
75+
{% endhighlight %}
76+
77+
for composer version
78+
79+
{% highlight bash %}
80+
$ php composer.phar update
81+
{% endhighlight %}
82+

images/debug.png

47.8 KB
Loading

0 commit comments

Comments
 (0)