Skip to content

Added phpunit and 100% code coverage ci gate#51

Merged
tuj merged 2 commits into
developfrom
feature/issue-31-phpunit-coverage
Jun 11, 2026
Merged

Added phpunit and 100% code coverage ci gate#51
tuj merged 2 commits into
developfrom
feature/issue-31-phpunit-coverage

Conversation

@tuj

@tuj tuj commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Issue

Closes #31

Description

Set up PHPUnit as the test harness for this project and enforce a 100% line-coverage gate on every pull request.

Coverage is generated by running PHPUnit under Xdebug (XDEBUG_MODE=coverage) and checked with rregeer/phpunit-coverage-check.

Tooling is exposed via two Task targets — task test and task test-coverage — and a project-local .github/workflows/tests.yaml workflow.

Threshold is set to 100% from day one; falling below fails CI.

@tuj tuj requested a review from martinyde June 10, 2026 11:43
@tuj tuj self-assigned this Jun 10, 2026
@tuj tuj added the enhancement New feature or request label Jun 10, 2026
@tuj tuj added this to the Base setup milestone Jun 10, 2026
@tuj tuj linked an issue Jun 10, 2026 that may be closed by this pull request
7 tasks

@martinyde martinyde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@tuj tuj merged commit e4691c6 into develop Jun 11, 2026
8 checks passed
@tuj tuj deleted the feature/issue-31-phpunit-coverage branch June 11, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add PHPUnit test suite and CI workflow

2 participants