test: split unit and integration suites and add coverage config
- Create tests/Integration/ConnectionTest.php, skipped unless CAMELIA_TEST_HOST, CAMELIA_TEST_DATABASE and CAMELIA_TEST_USER are set, so composer test:integration no longer fails on a missing directory. - Move coverage reports to phpunit.coverage.xml.dist: a coverage driver is optional and failOnWarning would turn its absence into a failed gate. - Add a composer coverage script and document the requirement. - Exclude development-only files from the distribution archive via export-ignore. - Add a Gitea Actions workflow running composer check on PHP 8.3 and 8.4. - Align the README title with the package name and add Packagist and CI badges.
This commit is contained in:
1 parent
725bcfdaf4
commit
f9010e2c63
7 files changed
+144
-3
No files matched your search
@@ -37,6 +37,7 @@
|
||||
"scripts": {
|
||||
"test": "phpunit --configuration phpunit.xml.dist",
|
||||
"test:integration": "phpunit --configuration phpunit.integration.xml.dist",
|
||||
"coverage": "phpunit --configuration phpunit.coverage.xml.dist --coverage-text",
|
||||
"fmt": "mago fmt",
|
||||
"fmt:check": "mago fmt --check",
|
||||
"lint": "mago lint",
|
||||
|
||||
Reference in new issue
Block a user