Skip to content

Commit 539ab48

Browse files
committed
Merge remote-tracking branch 'Codeception/master'
# Conflicts: # install.html
2 parents dd04847 + 5015c4c commit 539ab48

File tree

4 files changed

+85
-2
lines changed

4 files changed

+85
-2
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
layout: post
3+
title: "Codeception 2.2 Beta"
4+
date: 2016-03-26 01:03:50
5+
---
6+
7+
Happy Easter, everyone! Ok, not actually everyone, but Happy Easter to those who celebrate it this weekend.
8+
If you do (or even not), you probably will have free time to play with something new.
9+
And yes, by *something* we mean a **beta version of Codeception 2.2**!
10+
11+
We already announced lots of changes in Codeception:
12+
13+
* [Test Dependencies, Params, and Conflicts](http://codeception.com/03-05-2016/codeception-2.2.-upcoming-features.html)
14+
* [DataFactory, AngularJS, Examples, Custom Commands, ...](http://codeception.com/03-10-2016/even-more-features-of-codeception.html)
15+
16+
but we forgot the most important one. It is **Gherkin Support**, which allows you to combine business requirements with functional testing. Yes, `*.feature` files are now part of a family with Cest, Cept and Tests. Codeception is a tool for running all kind of tests and in this release we significantly improved test internal architecture and test formats.
17+
18+
But back to Gherkin.
19+
20+
```gherkin
21+
Feature: ToDo items
22+
In order to get my tasks done
23+
As a motivated person
24+
I need to be able to organize my todo list
25+
26+
Scenario: show current todos
27+
Given there are todo items:
28+
| Task | State |
29+
| make Gherkin PR | opened |
30+
| update docs | opened |
31+
| create examples | closed |
32+
When I open my todos
33+
Then I should see 2 todo items
34+
```
35+
36+
Complete Guide on BDD with Codeception is not ready yest, but you can start with generating first feature file:
37+
38+
```
39+
codecept g:feature <suiteName> <featureName>
40+
```
41+
42+
We recommend to have a special *features* folder in acceptance or functional suite, so it could be symlinked to the `features` dir in root of your project. This way non-technical users can esaily access feature files, without need to examine actual tests.
43+
44+
Next thing to do is to describe feature with scenarios. When you are done, prepare scenario steps for implementation be running
45+
46+
```
47+
codecept gherkin:snippets <suiteName>
48+
```
49+
50+
You will get a list of methods which should be included into your actor class (let's say AcceptanceTester).
51+
Then you should have it implemented. In theory, you can use any method of any class annotated with `@Given`, `@When`, `@Then` to be the step definition. So don't worry you will end up with everything to put in one context, you will have option to use multiple contexts depending on role, tags, etc. More about it in BDD guide coming in next weeks.
52+
53+
For those of you, who set your dependencies as "codeception/codecepton:*" and (with no settings of `"minimum-stability": "stable"` you will probably have some wonderful time once you get back from holidays. This release is minor, so it doesn't break everything, but we has breaking changes. We notified of breaking changes in earlier versions by "deprecation warnings", and we actually removed lots of deprecated stuff. The most important breaking change is proper implementation of [Conflicts API](http://codeception.com/03-05-2016/codeception-2.2.-upcoming-features.html#conflicts). Please make sure you are not using modules of the same kinds in your configs.
54+
55+
---
56+
57+
Codeception 2.2-beta is available for installation only via Composer:
58+
59+
```
60+
composer require --dev "codeception/codeception:2.2.0-beta"
61+
```
62+
63+
Next steps to do:
64+
65+
* [Read the changelog](https://github.com/Codeception/Codeception/blob/master/CHANGELOG.md). Check for all breaking changes. Probably you will need to update your Helper classes.
66+
* Refer to updated [module docs for this beta release](https://github.com/Codeception/Codeception/tree/master/docs/modules) in master branch.
67+
68+
Stable release will come in next week(s). The release date depends on reported issues and on progress of updating documentation.
69+
70+
Have nice weekends and testing time!
71+
We, Codeception team, hope you will love our product.
72+
73+
P.S. Reported issues should include a version. Pull Requests should be sent to master branch.

addons.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ This module helps to upload files when using webdriver via remote connection.
6464

6565
#### [VisualCeption](https://github.com/DigitalProducts/codeception-module-visualception)
6666

67-
Visual regression tests integrated in Codeception. This module can be used to compare the current representation of a website element with an expeted. It was written on the shoulders of codeception and integrates in a very easy way.
67+
Visual regression tests integrated in Codeception. This module can be used to compare the current representation of a website element with an expected. It was written on the shoulders of codeception and integrates in a very easy way.
6868

6969
#### [CSS Regression](https://github.com/sascha-egerer/css-regression)
7070

install.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ <h3>Composer</h3>
5555
<p>
5656
<pre><code>php composer.phar require "codeception/codeception:*"</code></pre>
5757
</p>
58+
<<<<<<< HEAD
5859
<p>From now on Codeception (with installed PHPUnit) can be run as:</p>
5960
<p>
6061
<pre><code>php vendor/bin/codecept</code></pre>
@@ -65,6 +66,15 @@ <h3>Composer</h3>
6566
</p>
6667
<h3>Minimal Codeception</h3>
6768
<p>Currently Codeception installs Webdriver and Guzzle libraries as dependencies. If you don't plan to do acceptance testing, you can get minimal installation of Codeception by requiring `codeception/base`</p>
69+
=======
70+
</div>
71+
<p><a href="http://codeception.com/php54/codecept.phar">Download phar for PHP 5.4 and 5.5</a></p>
72+
<p>For PHP 5.3 <a href="/builds">use the latest version of Codeception 1.8.x</a></p>
73+
74+
75+
<p>Prepare tests directory and configs</p>
76+
<div>
77+
>>>>>>> Codeception/master
6878
<p>
6979
<pre><code>php composer.phar require "codeception/base:*" --dev</code></pre>
7080
</p>

quickstart.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h1>Codeception Quickstart Guide</h1>
3232
<pre>$ wget http://codeception.com/codecept.phar<a href="/thanks" style="float:right" target="_blank">download <span class="glyphicon glyphicon-download"></span></a></pre>
3333

3434
<!-- phar php54 -->
35-
<pre>$ wget http://codeception.com/php54/codecept.phar <span class="text-muted">// PHP 5.4 >= 5.5.9</span><a href="/thanks_php54" style="float:right" target="_blank">download <span class="glyphicon glyphicon-download"></span></a></pre>
35+
<pre>$ wget http://codeception.com/php54/codecept.phar <span class="text-muted">// PHP 5.4 and 5.5</span><a href="/thanks_php54" style="float:right" target="_blank">download <span class="glyphicon glyphicon-download"></span></a></pre>
3636
<p><code class="text-muted">$ alias codecept='codecept.phar'</code></p>
3737

3838
<hr>

0 commit comments

Comments
 (0)