yii2-gii
yii2-gii copied to clipboard
FR: Extension generator with unittest
I wish we have template configuration for phpunit
, travis
etc and etc. Also we have TestCase
base class and composer.json
with require-dev
section.
?
Also generate phpunit.xml
, .travis.yml
, tests/TestCase.php
, etc.
Based on what?
I am sure. Base on your favorite :D
Basic travis.yml
and phpunit.xml.dist
can be added.
As for TestCase
- I am unsure.
Still, since we have a namespace
generator input, we can try to do so: generate tests/TestCase.php
and tests/bootstrap.php
.
I think we should move this to the https://github.com/yiisoft/yii2-app-advanced repo. We can create an example of a fixture to load user and then make an small acceptance test for frontend\controllers\SiteController
and frontend\controllers\SiteController
handling a login and a frontpage.