aboutsummaryrefslogtreecommitdiffstats
path: root/.ddev/commands
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2023-09-10 13:50:34 +0200
committerHarald Eilertsen <haraldei@anduin.net>2023-09-10 13:50:34 +0200
commitf1863a1a463714594f0678e919aaba0953bc0654 (patch)
treeeecfd51e29b5a750a8c6ad2003b26a3baa61f088 /.ddev/commands
parent6c63b1fcfe593e002aacfb6093a509137999e97e (diff)
downloadhubzilla-ddev-f1863a1a463714594f0678e919aaba0953bc0654.tar.gz
hubzilla-ddev-f1863a1a463714594f0678e919aaba0953bc0654.tar.bz2
hubzilla-ddev-f1863a1a463714594f0678e919aaba0953bc0654.zip
Fix ddev config and add phpunit subcommand
+ Update config to use ./core as working dir. Hubzilla assumes it is running with it's root directory as the cwd, so this makes sure tests work correctly when invoked through ddev. + Add phpunit ddev subcommand Enables running phpunit in the container directly from the host terminal like this. $ ddev phpunit -c tests/phpunit.xml tests The paths are relative to ./core
Diffstat (limited to '.ddev/commands')
-rwxr-xr-x.ddev/commands/web/phpunit7
1 files changed, 7 insertions, 0 deletions
diff --git a/.ddev/commands/web/phpunit b/.ddev/commands/web/phpunit
new file mode 100755
index 0000000..90451f4
--- /dev/null
+++ b/.ddev/commands/web/phpunit
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+## Description: Run phpunit in the ddev environment
+## Usage: phpunit
+## Example: ddev phpunit tests
+
+vendor/bin/phpunit "$@"