RonasIT / laravel-swagger

Laravel-Swagger is a fully automate tool which allows to generate and save swagger-based documentation after successful completing your application's feature tests.
https://ronasit.com
MIT License
152 stars 44 forks source link

fix: documentation creates only for the last test case #126

Closed Goodmain closed 7 months ago

Goodmain commented 7 months ago

Description

The documentation generates only for the single test case. So the final documentation.json file contains information from the last test case. The reason is the incorrect event of PHPUnit. I changed PHPUnit\Event\Test\AfterLastTestMethodFinished to PHPUnit\Event\Application\Finished and as a result, a subscriber will run only when all tests finish.

Type of change

Checklist:

sonarcloud[bot] commented 7 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud