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
*`php codecept.phar generate:cept suitename subdir/subdir/testnameCept.php` - generates file in subdir/subdir of suite dir.
67
74
68
75
### Generate Cest
69
76
70
77
Generates new empty test file for scenario-based unit tests. This file format is called Cest = Cept + Test.
71
78
72
79
#### Usage
73
80
74
-
*`codecept generate:cest suitename testname` - generates testnameCest.php inside the suite.
75
-
*`codecept generate:cest suitename "\Namespace\Subnamespace\testnameCest.php"` - generates file in `Namespace/Subnamepace` of suite dir (according to PSR-0). Generated file will have a namespace defined.
*`php codecept.phar generate:cest suitename "\Namespace\Subnamespace\testnameCest.php"` - generates file in `Namespace/Subnamepace` of suite dir (according to PSR-0). Generated file will have a namespace defined.
76
83
77
84
### Generate Test
78
85
79
86
Generates new empty test file for Codeception powered unit test.
80
87
81
88
#### Usage
82
89
83
-
*`codecept generate:test suitename testname` - generates testnameTest.php inside the suite.
84
-
*`codecept generate:test suitename "\Namespace\Subnamespace\testnameTest.php"` - generates file in `Namespace/Subnamepace` of suite dir (according to PSR-0). Generated file will have a namespace defined.
*`php codecept.phar generate:test suitename "\Namespace\Subnamespace\testnameTest.php"` - generates file in `Namespace/Subnamepace` of suite dir (according to PSR-0). Generated file will have a namespace defined.
85
92
86
93
### Generate Classical PHPUnit Test
87
94
88
95
Generates new empty test file for Codeception powered unit test.
89
96
90
97
#### Usage
91
98
92
-
*`codecept generate:phpunit suitename testname` - generates testnameTest.php inside the suite.
93
-
*`codecept generate:phpunit suitename "\Namespace\Subnamespace\testnameTest.php"` - generates file in `Namespace/Subnamepace` of suite dir (according to PSR-0). Generated file will have a namespace defined.
*`php codecept.phar generate:phpunit suitename "\Namespace\Subnamespace\testnameTest.php"` - generates file in `Namespace/Subnamepace` of suite dir (according to PSR-0). Generated file will have a namespace defined.
94
101
95
102
96
103
### Generate Scenarios
@@ -99,13 +106,13 @@ Generates text representation for all tests in suite. They are called scenarios
99
106
100
107
#### Usage
101
108
102
-
*`codecept generate:scenarios suitename` - generates for this suite.
109
+
*`php codecept.phar generate:scenarios suitename` - generates for this suite.
103
110
104
111
### Analyze
105
112
106
113
Searches for all actions used in tests but not defined yet in modules. Asks to generate stub methods in helpers for corresponding steps.
107
114
108
115
#### Usage
109
116
110
-
*`codecept analyze suitename` - analyzes actions for suite.
117
+
*`php codecept.phar analyze suitename` - analyzes actions for suite.
0 commit comments