This package allows you to generate unit tests. This package is recommended for magento 2.
Add dependency
composer require cleatsquad/php-unit-tests-generator --dev
You can use it to generate tests for all classes in a folder
bin/magento dev:unit:test-generate /app/code/Vendor/Module/pathtest-generate
Or use it for a specified file
bin/magento dev:unit:test-generate /app/code/Vendor/Module/path/to/file.php
@todo add origin class and generated test
- Mohamed El Mrabet - Initial work - mimou78
This project is licensed under the MIT License - see the LICENSE.md file for details