Skip to content

fix(tests): declare the classes the connection report tests use - #719

Merged
rubenvdlinde merged 1 commit into
developmentfrom
fix/connection-tests-declare-used-classes
Sep 16, 2026
Merged

rubenvdlinde merged 1 commit into
developmentfrom
fix/connection-tests-declare-used-classes

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

What

Twelve tests added in #706 run ConnectionReporter, ConnectionObservations, SiemAuditTrail, SiemSink and SiemQueueItem without declaring them. This adds the matching @uses lines to the three test classes.

Why

phpunit.xml sets beStrictAboutCoverageMetadata="true" and failOnRisky="true", and CI collects coverage. A test that executes a class it neither @covers nor @uses is therefore risky, and a risky test fails the cell.

All six PHPUnit cells stayed red on development after #717 with zero failing assertions: OK, but there were issues! Tests: 1327, Assertions: 4320, Risky: 12. (run 35012220984).

A local composer check:strict cannot see this: it runs without coverage, so the strict coverage-metadata check never fires. That is why #717 looked complete.

Verified

🤖 Generated with Claude Code

keepiq's phpunit.xml sets beStrictAboutCoverageMetadata and failOnRisky, and
CI collects coverage, so a test that runs a class it neither @Covers nor
@uses is risky and fails the cell. Twelve tests added in #706 ran
ConnectionReporter, ConnectionObservations, SiemAuditTrail, SiemSink and
SiemQueueItem without declaring them, which kept all six PHPUnit cells red
on development with zero failing assertions (run 35012220984).
@rubenvdlinde
rubenvdlinde merged commit b21e44c into development Sep 16, 2026
77 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/keepiq @ 579c547

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
build
check-manifest
test-l10n
format
check-l10n-js
check-schema-l10n
composer ✅ 111/111
npm ✅ 543/543
app:check-code ⏭️
info.xml
REUSE
lockfile sync
PHPUnit
Newman
Playwright ⏭️ deferred: E2E runs locally and on the promotion path only. This pull request targets development, so the suite is asked once per promotion into beta and main rather than once per push per open pull request. Run it on any branch from the Actions tab, or locally with npx playwright test.
Hydra gates

Quality workflow — 2026-09-16 05:21 UTC

Download the full PDF report from the workflow artifacts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant