cleatsquad/php-unit-tests-generator

1.0.0 2022-11-20 19:12 UTC

This package is auto-updated.

Last update: 2024-10-20 23:26:15 UTC


README

This package allows you to generate unit tests. This package is recommended for magento 2.

Badges

Latest Stable Version Total Downloads Latest Unstable Version License

Getting Started

Installing

Add dependency

composer require cleatsquad/php-unit-tests-generator --dev

Examples

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

Examples

@todo add origin class and generated test

Authors

  • Mohamed El Mrabet - Initial work - mimou78

License

This project is licensed under the MIT License - see the LICENSE.md file for details