From 2af720cde1c32dc5aad0dd43c520ea604a040d1e Mon Sep 17 00:00:00 2001 From: Chen Asraf Date: Sun, 23 Nov 2025 00:10:54 +0200 Subject: [PATCH] chore(test): swap phpunit local/docker --- Makefile | 4 ++-- tests/phpunit.docker.xml | 14 ++++++++++++++ tests/phpunit.local.xml | 18 ------------------ tests/phpunit.xml | 31 +++++++++++++++++++------------ 4 files changed, 35 insertions(+), 32 deletions(-) create mode 100644 tests/phpunit.docker.xml delete mode 100644 tests/phpunit.local.xml diff --git a/Makefile b/Makefile index 405b770..e5ed0d1 100644 --- a/Makefile +++ b/Makefile @@ -230,7 +230,7 @@ test: composer exit 1; \ fi; \ echo "\x1b[32mUsing Nextcloud root: $$NC_ROOT\x1b[0m"; \ - NEXTCLOUD_ROOT="$$NC_ROOT" $(CURDIR)/vendor/phpunit/phpunit/phpunit -c tests/phpunit.local.xml; \ + NEXTCLOUD_ROOT="$$NC_ROOT" $(CURDIR)/vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml; \ if [ -f tests/phpunit.integration.xml ]; then \ NEXTCLOUD_ROOT="$$NC_ROOT" $(CURDIR)/vendor/phpunit/phpunit/phpunit -c tests/phpunit.integration.xml; \ fi @@ -265,7 +265,7 @@ test-docker: exit 1; \ fi; \ echo "\x1b[33mRunning tests in container $$CONTAINER_ID for app $$APP_DIR\x1b[0m"; \ - docker exec $$CONTAINER_ID phpunit -c apps-shared/$$APP_DIR/tests/phpunit.xml + docker exec $$CONTAINER_ID phpunit -c apps-shared/$$APP_DIR/tests/phpunit.docker.xml # lint: # - Lint JS via pnpm and PHP via composer script "lint" diff --git a/tests/phpunit.docker.xml b/tests/phpunit.docker.xml new file mode 100644 index 0000000..e995162 --- /dev/null +++ b/tests/phpunit.docker.xml @@ -0,0 +1,14 @@ + + + + + . + + + diff --git a/tests/phpunit.local.xml b/tests/phpunit.local.xml deleted file mode 100644 index 9ad6526..0000000 --- a/tests/phpunit.local.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - . - - - - - ../appinfo - ../lib - - - diff --git a/tests/phpunit.xml b/tests/phpunit.xml index 52bbcd3..2564a03 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -1,14 +1,21 @@ - - - - ../appinfo - ../lib - - - - - . - - + + + + . + + + + + ../appinfo + ../lib + +