1
1
# CLI commands: vendor/bin/codecept
2
2
3
3
<div class =" bs-callout bs-callout-warning " markdown =" 1 " >
4
- We do not recommend using Codeception commands directly as they can break the MFTF basic workflow.
4
+ We do not recommend using Codeception commands directly as they can break MFTF basic workflow.
5
5
All the Codeception commands you need are wrapped using the [ mftf tool] [ ] .
6
6
7
7
To run the Codeception testing framework commands directly, change your directory to the ` <Magento root> ` .
@@ -36,7 +36,7 @@ vendor/bin/codecept run
36
36
```
37
37
38
38
<div class =" bs-callout bs-callout-info " >
39
- The following documentation corresponds to Codeception 2.3.8 .
39
+ The following documentation corresponds to Codeception 4.1.4 .
40
40
</div >
41
41
42
42
``` bash
@@ -47,36 +47,44 @@ Arguments:
47
47
test test to be run
48
48
49
49
Options:
50
- -o, --override=OVERRIDE Override config values (multiple values allowed)
51
- --config (-c) Use custom path for config
52
- --report Show output in compact style
53
- --html Generate html with results (default: " report.html" )
54
- --xml Generate JUnit XML Log (default: " report.xml" )
55
- --tap Generate Tap Log (default: " report.tap.log" )
56
- --json Generate Json Log (default: " report.json" )
57
- --colors Use colors in output
58
- --no-colors Force no colors in output (useful to override config file)
59
- --silent Only outputs suite names and final results
60
- --steps Show steps in output
61
- --debug (-d) Show debug and scenario output
62
- --coverage Run with code coverage (default: " coverage.serialized" )
63
- --coverage-html Generate CodeCoverage HTML report in path (default: " coverage" )
64
- --coverage-xml Generate CodeCoverage XML report in file (default: " coverage.xml" )
65
- --coverage-text Generate CodeCoverage text report in file (default: " coverage.txt" )
66
- --coverage-phpunit Generate CodeCoverage PHPUnit report in file (default: " coverage-phpunit" )
67
- --no-exit Do not finish with exit code
68
- --group (-g) Groups of tests to be executed (multiple values allowed)
69
- --skip (-s) Skip selected suites (multiple values allowed)
70
- --skip-group (-x) Skip selected groups (multiple values allowed)
71
- --env Run tests in selected environments. (multiple values allowed, environments can be merged with ' ,' )
72
- --fail-fast (-f) Stop after first failure
73
- --help (-h) Display this help message.
74
- --quiet (-q) Do not output any message.
75
- --verbose (-v| vv| vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
76
- --version (-V) Display this application version.
77
- --ansi Force ANSI output.
78
- --no-ansi Disable ANSI output.
79
- --no-interaction (-n) Do not ask any interactive question.
50
+ -o, --override=OVERRIDE Override config values (multiple values allowed)
51
+ -e, --ext=EXT Run with extension enabled (multiple values allowed)
52
+ --report Show output in compact style
53
+ --html[= HTML] Generate html with results [default: " report.html" ]
54
+ --xml[= XML] Generate JUnit XML Log [default: " report.xml" ]
55
+ --phpunit-xml[= PHPUNIT-XML] Generate PhpUnit XML Log [default: " phpunit-report.xml" ]
56
+ --tap[= TAP] Generate Tap Log [default: " report.tap.log" ]
57
+ --json[= JSON] Generate Json Log [default: " report.json" ]
58
+ --colors Use colors in output
59
+ --no-colors Force no colors in output (useful to override config file)
60
+ --silent Only outputs suite names and final results
61
+ --steps Show steps in output
62
+ -d, --debug Show debug and scenario output
63
+ --bootstrap[= BOOTSTRAP] Execute custom PHP script before running tests. Path can be absolute or relative to current working directory [default: false]
64
+ --no-redirect Do not redirect to Composer-installed version in vendor/codeception
65
+ --coverage[= COVERAGE] Run with code coverage
66
+ --coverage-html[= COVERAGE-HTML] Generate CodeCoverage HTML report in path
67
+ --coverage-xml[= COVERAGE-XML] Generate CodeCoverage XML report in file
68
+ --coverage-text[= COVERAGE-TEXT] Generate CodeCoverage text report in file
69
+ --coverage-crap4j[= COVERAGE-CRAP4J] Generate CodeCoverage report in Crap4J XML format
70
+ --coverage-phpunit[= COVERAGE-PHPUNIT] Generate CodeCoverage PHPUnit report in path
71
+ --no-exit Don' t finish with exit code
72
+ -g, --group=GROUP Groups of tests to be executed (multiple values allowed)
73
+ -s, --skip=SKIP Skip selected suites (multiple values allowed)
74
+ -x, --skip-group=SKIP-GROUP Skip selected groups (multiple values allowed)
75
+ --env=ENV Run tests in selected environments. (multiple values allowed)
76
+ -f, --fail-fast Stop after first failure
77
+ --no-rebuild Do not rebuild actor classes on start
78
+ --seed=SEED Define random seed for shuffle setting
79
+ --no-artifacts Don' t report about artifacts
80
+ -h, --help Display this help message
81
+ -q, --quiet Do not output any message
82
+ -V, --version Display this application version
83
+ --ansi Force ANSI output
84
+ --no-ansi Disable ANSI output
85
+ -n, --no-interaction Do not ask any interactive question
86
+ -c, --config[= CONFIG] Use custom path for config
87
+ -v| vv| vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
80
88
```
81
89
82
90
<!-- Link definitions -->
0 commit comments