Skip to content

test: collect the unit tests that were sitting in an uncollected directory - #669

Merged
rubenvdlinde merged 1 commit into
developmentfrom
fix/collect-the-uppercase-unit-test-dir
Sep 1, 2026
Merged

test: collect the unit tests that were sitting in an uncollected directory#669
rubenvdlinde merged 1 commit into
developmentfrom
fix/collect-the-uppercase-unit-test-dir

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

What

phpunit.xml collects ./tests/unit. A second ./tests/Unit existed beside it, holding Service/DemoDataServiceTest.php. On a case-sensitive filesystem those are two different directories, so that file was never collected and its 7 tests have never run in CI.

Nothing about the file is wrong, which is exactly why this went unnoticed. It is green the moment it is collected:

OK (7 tests, 13 assertions)

Collected tests go from 239 to 246.

Why it matters beyond the count

DemoDataServiceTest covers what DemoDataService must refuse to do: skip on a version gate, swallow a missing descriptor, or claim success without OpenRegister. Its own header calls the failure it guards "the quiet one: reporting that demo data was installed on an instance where nothing was written." A test for a silent failure, which itself never ran, is the same shape one layer up.

Provenance

Found while working #667, which I have closed as superseded by #666. This is the one finding there that #666 does not cover.

…ctory

phpunit.xml collects ./tests/unit. A second ./tests/Unit existed beside it,
holding Service/DemoDataServiceTest.php. On a case-sensitive filesystem those
are different directories, so that file was never collected and its 7 tests
have never run in CI.

Nothing about the file was wrong, which is why this went unnoticed: it is
green the moment it is collected. Collected tests go from 239 to 246.

Found while working #667 (closed, superseded by #666); this is the one finding
there that #666 does not cover.
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/larpinq @ f6e4fe8

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
build
check-specs
test-l10n
format
check-l10n-js
check-schema-l10n
composer ✅ 105/105
npm ✅ 525/525
app:check-code ⏭️
info.xml
REUSE
PHPUnit
Newman
Playwright ⏭️ deferred — runs on the promotion into beta/main, not on a pull request into development
Hydra gates

Quality workflow — 2026-09-01 21:17 UTC

Download the full PDF report from the workflow artifacts.

@rubenvdlinde
rubenvdlinde merged commit d278b95 into development Sep 1, 2026
50 checks passed
@rubenvdlinde
rubenvdlinde deleted the fix/collect-the-uppercase-unit-test-dir branch September 1, 2026 21:18
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