Skip to content

Conversation

@markf3lton
Copy link

Clarifications for installing phpunit and for running a single test from core/profiles/demo_umami

Reminder to enable PHPUnit via core dev tools
Browsers default to https which will show a 404 page, use http instead
@markf3lton
Copy link
Author

After chatting with @catch56, I confirmed there's a way to execute the tests without first ssh'ing into the container:

ddev exec phpunit -c web/core/ web/core/profiles/demo_umami/tests/src/FunctionalJavascript/OpenTelemetryNodePagePerformanceTest.php

And Claude recommends using DDEV custom commands by creating .ddev/commands/web/phpunit with

bash   #!/bin/bash
   cd /var/www/html/web && phpunit -c core/ "$@"

But, I like the instructions as-is.

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