|
7 | 7 |
|
8 | 8 | Create new test suite. Requires suite name and actor name |
9 | 9 |
|
10 | | -`codecept g:suite api Api` -> api + ApiGuy |
11 | | -`codecept g:suite frontend Front` -> frontend + FrontGuy |
| 10 | +* `codecept g:suite api Api` -> api + ApiGuy |
| 11 | +* `codecept g:suite frontend Front` -> frontend + FrontGuy |
12 | 12 |
|
13 | 13 |
|
14 | 14 |
|
@@ -59,7 +59,7 @@ Create new test suite. Requires suite name and actor name |
59 | 59 |
|
60 | 60 | Try to execute test commands in run-time. You may try commands before writing the test. |
61 | 61 |
|
62 | | -`codecept console acceptance` - starts acceptance suite environment. If you use WebDriver you can manipulate browser with Codeception commands. |
| 62 | +* `codecept console acceptance` - starts acceptance suite environment. If you use WebDriver you can manipulate browser with Codeception commands. |
63 | 63 |
|
64 | 64 |
|
65 | 65 |
|
@@ -105,7 +105,7 @@ Try to execute test commands in run-time. You may try commands before writing th |
105 | 105 |
|
106 | 106 | Creates empty Group file - extension which handles all group events. |
107 | 107 |
|
108 | | -`codecept g:group Admin` |
| 108 | +* `codecept g:group Admin` |
109 | 109 |
|
110 | 110 |
|
111 | 111 |
|
@@ -156,9 +156,9 @@ Creates empty Group file - extension which handles all group events. |
156 | 156 |
|
157 | 157 | Generates Cept (scenario-driven test) file: |
158 | 158 |
|
159 | | -`codecept generate:cept suite Login` |
160 | | -`codecept g:cept suite subdir/subdir/testnameCept.php` |
161 | | -`codecept g:cept suite LoginCept -c path/to/project` |
| 159 | +* `codecept generate:cept suite Login` |
| 160 | +* `codecept g:cept suite subdir/subdir/testnameCept.php` |
| 161 | +* `codecept g:cept suite LoginCept -c path/to/project` |
162 | 162 |
|
163 | 163 |
|
164 | 164 |
|
@@ -209,6 +209,7 @@ Generates Cept (scenario-driven test) file: |
209 | 209 |
|
210 | 210 | Executes tests. |
211 | 211 |
|
| 212 | +``` |
212 | 213 | Arguments: |
213 | 214 | suite suite to be tested |
214 | 215 | test test to be run |
@@ -289,7 +290,7 @@ Options: |
289 | 290 |
|
290 | 291 | Auto-updates phar archive from official site: 'http://codeception.com/codecept.phar' . |
291 | 292 |
|
292 | | -`php codecept.phar self-update` |
| 293 | +* `php codecept.phar self-update` |
293 | 294 |
|
294 | 295 | @author Franck Cassedanne <franck@cassedanne.com> |
295 | 296 |
|
@@ -337,8 +338,8 @@ Auto-updates phar archive from official site: 'http://codeception.com/codecept.p |
337 | 338 |
|
338 | 339 | Generates skeleton for Unit Test that extends `Codeception\TestCase\Test`. |
339 | 340 |
|
340 | | -`codecept g:test unit User` |
341 | | -`codecept g:test unit "App\User"` |
| 341 | +* `codecept g:test unit User` |
| 342 | +* `codecept g:test unit "App\User"` |
342 | 343 |
|
343 | 344 |
|
344 | 345 |
|
@@ -390,8 +391,8 @@ Generates skeleton for Unit Test that extends `Codeception\TestCase\Test`. |
390 | 391 | Generates Actor classes (initially Guy classes) from suite configs. |
391 | 392 | Starting from Codeception 2.0 actor classes are auto-generated. Use this command to generate them manually. |
392 | 393 |
|
393 | | -`codecept build` |
394 | | -`codecept build path/to/project` |
| 394 | +* `codecept build` |
| 395 | +* `codecept build path/to/project` |
395 | 396 |
|
396 | 397 |
|
397 | 398 |
|
@@ -443,7 +444,7 @@ Starting from Codeception 2.0 actor classes are auto-generated. Use this command |
443 | 444 |
|
444 | 445 | Creates empty Helper class. |
445 | 446 |
|
446 | | -`codecept g:helper MyHelper` |
| 447 | +* `codecept g:helper MyHelper` |
447 | 448 |
|
448 | 449 |
|
449 | 450 |
|
@@ -546,9 +547,9 @@ You will be asked to choose one of the actors that will be used in tests. To ski |
546 | 547 |
|
547 | 548 | Generates skeleton for unit test as in classical PHPUnit. |
548 | 549 |
|
549 | | -`codecept g:phpunit unit UserTest` |
550 | | -`codecept g:phpunit unit User` |
551 | | -`codecept g:phpunit unit "App\User"` |
| 550 | +* `codecept g:phpunit unit UserTest` |
| 551 | +* `codecept g:phpunit unit User` |
| 552 | +* `codecept g:phpunit unit "App\User` |
552 | 553 |
|
553 | 554 |
|
554 | 555 |
|
@@ -600,10 +601,9 @@ Generates skeleton for unit test as in classical PHPUnit. |
600 | 601 |
|
601 | 602 | Generates user-friendly text scenarios from scenario-driven tests (Cest, Cept). |
602 | 603 |
|
603 | | -`codecept g:scenarios acceptance` - for all acceptance tests |
604 | | -`codecept g:scenarios acceptance --format html` - in html format |
605 | | -`codecept g:scenarios acceptance --path doc` - generate scenarios to `doc` dir |
606 | | -
|
| 604 | +* `codecept g:scenarios acceptance` - for all acceptance tests |
| 605 | +* `codecept g:scenarios acceptance --format html` - in html format |
| 606 | +* `codecept g:scenarios acceptance --path doc` - generate scenarios to `doc` dir |
607 | 607 |
|
608 | 608 |
|
609 | 609 |
|
@@ -658,8 +658,8 @@ Generates user-friendly text scenarios from scenario-driven tests (Cest, Cept). |
658 | 658 |
|
659 | 659 | Generates StepObject class. You will be asked for steps you want to implement. |
660 | 660 |
|
661 | | -`codecept g:step acceptance AdminSteps` |
662 | | -`codecept g:step acceptance UserSteps --silent` - skip action questions |
| 661 | +* `codecept g:step acceptance AdminSteps` |
| 662 | +* `codecept g:step acceptance UserSteps --silent` - skip action questions |
663 | 663 |
|
664 | 664 |
|
665 | 665 |
|
@@ -710,8 +710,9 @@ Generates StepObject class. You will be asked for steps you want to implement. |
710 | 710 | * *Uses* `Codeception\Command\Shared\Config` |
711 | 711 |
|
712 | 712 | Cleans `log` directory |
713 | | -`codecept clean` |
714 | | -`codecept clean -c path/to/project` |
| 713 | + |
| 714 | +* `codecept clean` |
| 715 | +* `codecept clean -c path/to/project` |
715 | 716 |
|
716 | 717 |
|
717 | 718 |
|
@@ -756,10 +757,10 @@ Cleans `log` directory |
756 | 757 |
|
757 | 758 | Generates Cest (scenario-driven object-oriented test) file: |
758 | 759 |
|
759 | | -`codecept generate:cest suite Login` |
760 | | -`codecept g:cest suite subdir/subdir/testnameCest.php` |
761 | | -`codecept g:cest suite LoginCest -c path/to/project` |
762 | | -`codecept g:cest "App\Login"` |
| 760 | +* `codecept generate:cest suite Login` |
| 761 | +* `codecept g:cest suite subdir/subdir/testnameCest.php` |
| 762 | +* `codecept g:cest suite LoginCest -c path/to/project` |
| 763 | +* `codecept g:cest "App\Login"` |
763 | 764 |
|
764 | 765 |
|
765 | 766 |
|
@@ -812,9 +813,9 @@ Generates Cest (scenario-driven object-oriented test) file: |
812 | 813 | Generates PageObject. Can be generated either globally, or just for one suite. |
813 | 814 | If PageObject is generated globally it will act as UIMap, without any logic in it. |
814 | 815 |
|
815 | | -`codecept g:page Login` |
816 | | -`codecept g:page Registration` |
817 | | -`codecept g:page acceptance Login` |
| 816 | +* `codecept g:page Login` |
| 817 | +* `codecept g:page Registration` |
| 818 | +* `codecept g:page acceptance Login` |
818 | 819 |
|
819 | 820 |
|
820 | 821 |
|
|
0 commit comments