ubirak / jadd

Jadd is Another Documentation Dumper
MIT License
3 stars 3 forks source link

Improve first run when no tests were executed #20

Open tyx opened 7 years ago

tyx commented 7 years ago

I guess we can do better:

Warning: fopen(/tmp/jadd-endpoint-collection): failed to open stream: No such file or directory in /var/app/vendor/rezzza/jadd/src/Infra/Filesystem/CsvEndpointStorage.php on line 51

Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /var/app/vendor/rezzza/jadd/src/Infra/Filesystem/CsvEndpointStorage.php on line 52

Fatal error: Uncaught TypeError: Argument 4 passed to Rezzza\Jadd\Domain\ApiRequest::__construct() must be of the type array, null given, called in /var/app/vendor/rezzza/jadd/src/Infra/Filesystem/CsvEndpointStorage.php on line 54 and defined in /var/app/vendor/rezzza/jadd/src/Domain/ApiRequest.php:19
Stack trace:
#0 /var/app/vendor/rezzza/jadd/src/Infra/Filesystem/CsvEndpointStorage.php(54): Rezzza\Jadd\Domain\ApiRequest->__construct(NULL, NULL, NULL, NULL, NULL)
#1 /var/app/vendor/rezzza/jadd/src/Domain/DocumentationGenerator.php(33): Rezzza\Jadd\Infra\Filesystem\CsvEndpointStorage->readAll()
#2 /var/app/vendor/rezzza/jadd/src/Ui/Cli/GenerateDoc.php(37): Rezzza\Jadd\Domain\DocumentationGenerator->generate('app/config/rout...', 'app/doc/endpoin...')
#3 /var/app/vendor/symfony/console/Command/Command.php(255): Rezzza\Jadd\Ui\Cli\GenerateDoc->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /var/app/vendor/symfony/console/Application.php(829): Symfony\Com in /var/app/vendor/rezzza/jadd/src/Domain/ApiRequest.php on line 19