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: guides/02-GettingStarted.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
# Getting Started
2
2
3
3
Let's take a look at Codeception's architecture. We'll assume that you have already [installed](https://codeception.com/install) it
4
-
and bootstrapped your first test suites. Codeception has generated three of them: unit, functional, and acceptance.
4
+
and bootstrapped your first test suites. Codeception has generated three of them: Unit, Functional, and Acceptance.
5
5
They are well described in the [previous chapter](https://codeception.com/docs/01-Introduction). Inside your __/tests__ folder you will have three `.yml` config files and three directories
6
-
with names corresponding to these suites: `Unit`, `Functional`, `Acceptance`. Suites are independent groups of tests with a common purpose.
6
+
with names corresponding to these suites: `Unit`, `Functional`, `Acceptance`.
One of the main concepts of Codeception is representation of tests as actions of a person. We have a UnitTester, who executes functions and tests the code. We also have a FunctionalTester, a qualified tester,
41
-
who tests the application as a whole, with knowledge of its internals. Lastly we have an AcceptanceTester, a user who works with our application
42
-
through an interface that we provide.
40
+
One of the main concepts of Codeception is representation of tests as actions of a person. We have a "UnitTester", who executes functions and tests the code. We also have a "FunctionalTester", a qualified tester,
41
+
who tests the application as a whole, with knowledge of its internals. Lastly we have an "AcceptanceTester", a user who works with our application
42
+
in a real browser.
43
43
44
44
Methods of actor classes are generally taken from [Codeception Modules](https://codeception.com/docs/06-ModulesAndHelpers). Each module provides predefined actions for different testing purposes, and they can be combined to fit the testing environment.
45
45
Codeception tries to solve 90% of possible testing issues in its modules, so you don't have to reinvent the wheel.
46
46
We think that you can spend more time on writing tests and less on writing support code to make those tests run.
47
-
By default, AcceptanceTester relies on PhpBrowser module, which is set in the `tests/acceptance.suite.yml` configuration file:
47
+
By default, AcceptanceTester relies on [PhpBrowser](https://codeception.com/docs/modules/PhpBrowser) module, which is set in the `tests/Acceptance.suite.yml` configuration file:
48
48
49
49
```yaml
50
50
actor: AcceptanceTester
51
51
modules:
52
52
enabled:
53
53
- PhpBrowser:
54
-
url: http://localhost/myapp/
55
-
- \Helper\Acceptance
54
+
url: 'http://localhost/myapp/'
55
+
- Tests\Support\Helper\Acceptance
56
56
```
57
57
58
58
@@ -67,7 +67,7 @@ php vendor/bin/codecept build
67
67
68
68
## Writing a Sample Test
69
69
70
-
Codeception has its own testing format called Cest (Codecept + Test).
70
+
Codeception has its own testing format called "Cest" ("Codecept" + "Test").
71
71
To start writing a test we need to create a new Cest file. We can do that by running the following command:
72
72
73
73
```bash
@@ -82,7 +82,7 @@ This will generate `SigninCest.php` file inside `tests/Acceptance` directory. Le
0 commit comments