H
H
hollanditkzn2017-06-16 11:58:47
Yii
hollanditkzn, 2017-06-16 11:58:47

How to set up testing in yii2 advanced codeception?

I always get an error in the terminal in codecept

C:\OpenServer\domains\crm>codecept generate:test tests/unit ModelTest
==== Redirecting to Composer-installed version in vendor/codeception ====
[Codeception\Exception\ConfigurationException]
Suite unit was not loaded
generate:test

Although I searched for information, it was indicated there that tests should be run where the codeception.yml file is located. I use phpStorme and in run I use the test score directory and specify the address C:\OpenServer\domains\crm\frontend But when I run run
Then there is such an entry
Codeception PHP Testing Framework v2.3.3
Powered by PHPUnit 5.7.20 by Sebastian Bergmann and contributors.
[RuntimeException]
Suite 'frontend' could not be found
run [-o|--override OVERRIDE] [-e|--ext EXT] [--report] [--html [HTML]] [--xml [XML] ] [--tap [TAP]] [--json [JSON]] [--colors] [--no-colors] [--silent] [--steps] [-d|--debug] [-- coverage [COVERAGE]] [--coverage-html [COVERAGE-HTML]] [--coverage-xml [COVERAGE-XML]] [--coverage-text [COVERAGE-TEXT]] [--coverage-crap4j [COVERAGE- CRAP4J]] [--no-exit] [-g|--group GROUP] [-s|--skip SKIP] [-x|--skip-group SKIP-GROUP] [--env ENV] [-f |--fail-fast] [--no-rebuild] [--] [] []
Process finished with exit code 1

And I don't know what to do, how to test, tell me who can

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Bulatov, 2022-01-11
@alexanderbulatov

Please show the output in the console if you just call codecept without any parameters and commands and from the project root.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question