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: docs/Introduction.md
+32-24Lines changed: 32 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -40,8 +40,7 @@ Let's review those three test types in reverse order.
40
40
41
41
### Acceptance Tests
42
42
43
-
How does your client, manager, tester, or any other non-technical person know your website is working? By opening the browser, accessing the site, clicking on links, filling in the forms, and actually seeing the content on a web page. They have no idea of the programming language, framework, database, web-server,
44
-
or why the application did (or did not) behave as expected.
43
+
How does your client know your website is working? By opening the browser, accessing the site, clicking on links, filling in the forms, and actually seeing the content on a web page.
45
44
46
45
This is what acceptance tests are doing. They cover scenarios from a user's perspective.
47
46
With acceptance tests, you can be confident that users, following all the defined scenarios, won't get errors.
@@ -51,13 +50,16 @@ With acceptance tests, you can be confident that users, following all the define
51
50
#### Sample acceptance test
52
51
53
52
```php
54
-
$I->amOnPage('/');
55
-
$I->click('Sign Up');
56
-
$I->submitForm('#signup', [
57
-
'username' => 'MilesDavis',
58
-
'email' => 'miles@davis.com'
59
-
]);
60
-
$I->see('Thank you for Signing Up!');
53
+
public function trySignupForm(AcceptanceTester $I): void
54
+
{
55
+
$I->amOnPage('/');
56
+
$I->click('Sign Up');
57
+
$I->submitForm('#signup', [
58
+
'username' => 'MilesDavis',
59
+
'email' => 'miles@example.com'
60
+
]);
61
+
$I->see('Thank you for Signing Up!');
62
+
}
61
63
```
62
64
63
65
### Functional Tests
@@ -72,15 +74,21 @@ For functional tests, your application needs to be structured in order to run in
@@ -119,6 +127,6 @@ The Codeception framework was developed to actually make testing fun.
119
127
It allows writing unit, functional, integration, and acceptance tests in a single, coherent style.
120
128
121
129
All Codeception tests are written in a descriptive manner.
122
-
Just by looking at the test body, you can clearly understand what is being tested and how it is performed.
130
+
Just by looking at the test body, you can clearly understand what is being tested.
123
131
124
132
<divclass="alert alert-warning"><ahref="https://github.com/Codeception/codeception.github.com/edit/master/docs/Introduction.md"><strong>Improve</strong> this guide</a></div>
0 commit comments