Closed shanezhiu closed 4 years ago
I feel like to create a unit test file.
vendor/bin/codecept generate:test unit HttpTest
Provide console output if related. Use -vvv mode for more details.
-vvv
In Configuration.php line 327: Suite unit was not loaded generate:test <suite> <class>
Codeception version:4.1.7
PHP Version:7.3.3
Operating System:Linux version 5.8.0-1-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.0-6) 10.2.0, GNU ld (GNU Binutils for Debian) 2.35) #1 SMP Debian 5.8.7-1 (2020-09-05)
Installation type: Composer
List of installed packages (composer show):
composer show
name : codeception/codeception descrip. : BDD-style testing framework keywords : BDD, TDD, acceptance testing, functional testing, unit testing versions : * 4.1.x-dev type : library license : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText homepage : http://codeception.com/ source : [git] https://github.com/Codeception/Codeception.git b8a11b0f34d095e28db9fed42ebe8fb51dfed17e dist : [zip] https://api.github.com/repos/Codeception/Codeception/zipball/b8a11b0f34d095e28db9fed42ebe8fb51dfed17e b8a11b0f34d095e28db9fed42ebe8fb51dfed17e path : /home/shane/projects/php-projects/tenet/vendor/codeception/codeception names : codeception/codeception
autoload psr-4 Codeception\ => src/Codeception Codeception\Extension\ => ext
requires behat/gherkin ^4.4.0 codeception/lib-asserts ^1.0 codeception/phpunit-wrapper >6.0.15 <6.1.0 | ^6.6.1 | ^7.7.1 | ^8.1.1 | ^9.0 codeception/stub ^2.0 | ^3.0 ext-curl ext-json ext-mbstring * guzzlehttp/psr7 ~1.4 php >=5.6.0 <8.0 symfony/console >=2.7 <6.0 symfony/css-selector >=2.7 <6.0 symfony/event-dispatcher >=2.7 <6.0 symfony/finder >=2.7 <6.0 symfony/yaml >=2.7 <6.0
requires (dev) codeception/module-asserts @dev codeception/module-cli @dev codeception/module-db @dev codeception/module-filesystem @dev codeception/module-phpbrowser @dev codeception/specify ~0.3 codeception/util-universalframework @dev monolog/monolog ~1.8 squizlabs/php_codesniffer ~2.0 symfony/process >=2.7 <6.0 vlucas/phpdotenv ^2.0 | ^3.0 | ^4.0
suggests codeception/specify BDD-style code blocks codeception/verify BDD-style assertions hoa/console For interactive console functionality stecman/symfony-console-completion For BASH autocompletion symfony/phpunit-bridge For phpunit-bridge support
* Suite configuration: ```yml paths: tests: tests output: tests/_output data: tests/_data support: tests/_support envs: tests/_envs actor_suffix: Tester extensions: enabled: - Codeception\Extension\RunFailed
I found what caused this. I install phpunit 8 mannually rather than use codeception dependency.
What are you trying to achieve?
I feel like to create a unit test file.
What do you get instead?
vendor/bin/codecept generate:test unit HttpTest
Codeception version:4.1.7
PHP Version:7.3.3
Operating System:Linux version 5.8.0-1-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.0-6) 10.2.0, GNU ld (GNU Binutils for Debian) 2.35) #1 SMP Debian 5.8.7-1 (2020-09-05)
Installation type: Composer
List of installed packages (
composer show
):autoload psr-4 Codeception\ => src/Codeception Codeception\Extension\ => ext
requires behat/gherkin ^4.4.0 codeception/lib-asserts ^1.0 codeception/phpunit-wrapper >6.0.15 <6.1.0 | ^6.6.1 | ^7.7.1 | ^8.1.1 | ^9.0 codeception/stub ^2.0 | ^3.0 ext-curl ext-json ext-mbstring * guzzlehttp/psr7 ~1.4 php >=5.6.0 <8.0 symfony/console >=2.7 <6.0 symfony/css-selector >=2.7 <6.0 symfony/event-dispatcher >=2.7 <6.0 symfony/finder >=2.7 <6.0 symfony/yaml >=2.7 <6.0
requires (dev) codeception/module-asserts @dev codeception/module-cli @dev codeception/module-db @dev codeception/module-filesystem @dev codeception/module-phpbrowser @dev codeception/specify ~0.3 codeception/util-universalframework @dev monolog/monolog ~1.8 squizlabs/php_codesniffer ~2.0 symfony/process >=2.7 <6.0 vlucas/phpdotenv ^2.0 | ^3.0 | ^4.0
suggests codeception/specify BDD-style code blocks codeception/verify BDD-style assertions hoa/console For interactive console functionality stecman/symfony-console-completion For BASH autocompletion symfony/phpunit-bridge For phpunit-bridge support
Problem