Qlty is a Code Health Platform with support for code coverage.
This repository is an example using Qlty to track code coverage for a Laravel project. Coverage data is generated during test suite run and then uploaded to Qlty.
This repository uses PHPUnit for testing and generating coverage report.
- PHP version 8.x or above
- Composer 2.7.x or above
- Laravel 9.x or above
- PHPUnit 10.x or above
- Pcov 1.0.11 or above
- Run tests with
vendor/bin/phpunit
- An account on Qlty Cloud (free)
Note
This repository is using GitHub's OpenID Connect (OIDC) to authenticate the coverage upload with Qlty Cloud instead of storing a coverage token as a GitHub Actions secret.
See .github/workflows/main.yml
in this repository for a basic configuration.
Join the our Slack Community for help and to provide feedback that we'll use to improve Qlty.