From f1863a1a463714594f0678e919aaba0953bc0654 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 10 Sep 2023 13:50:34 +0200 Subject: 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 --- .ddev/commands/web/phpunit | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 .ddev/commands/web/phpunit (limited to '.ddev/commands/web') 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 "$@" -- cgit v1.2.3