You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2013-05-04-specification-testing-coparison.markdown
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ Now lets talk about functional and acceptance tests for web. Now we know differe
101
101
102
102
* In web it is not very important to develop pages from how they need to behave. So there all power of Gherkin could not be applied. In this case Gherkin works just as simple translator and nothing more. My decision is to use right things for right purposes.
103
103
* As I've pointed out above you also need to know Mink "internals" (API) to proceed some your custom methods.
104
-
* Testing web-pages can lead to many ambiguous or redundant Gherkin steps.
104
+
* Testing web-pages can lead to many *"Ambiguous"* or *"Redundant"* Behat feature steps.
105
105
106
106
Of course there are some things to avoid this, but i prefer "easy-to-learn things" in this situation.
107
107
@@ -129,7 +129,7 @@ $I->seeLink('Login');
129
129
?>
130
130
{% endhighlight %}
131
131
132
-
As you can see it is easy to read, and one really great thing is it is easy to write, because of auto-completion. In Behat when using Gherkin you can get some *"Undefined steps"* errors, just because you mistyped something. And it happens to be annoying.
132
+
As you can see it is easy to read, and one really great thing is it is easy to write, because of auto-completion. In Behat when using Gherkin you can get some *"Undefined"* steps errors, just because you mistyped something. And it happens to be annoying.
133
133
134
134
Codeception bundled with modules for functional and acceptance tests: PhpBrowser (functional tests over curl), Selenium (1,2) for acceptance tests, etc. There are also some nice modules for REST, SOAP and XML-RPC that can help you to test your API.
135
135
@@ -139,4 +139,4 @@ Overall, my choice in Codeception is to use "PhpBrowser" module (requires a web-
139
139
140
140
**Also need to notice that maybe Codeception is not a "true" BDD, unlike Behat. Behat+Gherkin helps you to use and design your application. Codeception helps you to test it nicely.**
141
141
142
-
*This post was intended to be a start to series. In next posts you will learn how to use newcoming Cest format for testing and integrate Codeception with Continious integration tools. Stay tuned!*
142
+
*This post was intended to be a start to series. In next posts you will learn how to use newcoming Cest format for testing and integrate Codeception with Continious integration tools. Stay tuned!*
0 commit comments