Skip to content

Commit a4d6f6f

Browse files
authored
Drop atoum
1 parent 275eafb commit a4d6f6f

File tree

614 files changed

+989
-2045
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

614 files changed

+989
-2045
lines changed

.github/actions/init_initialize-ldap-fixtures.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ ROOT_DIR=$(readlink -f "$(dirname $0)/../..")
66
# Recursively delete all LDAP entries
77
docker compose exec -T openldap ldapdelete -x -r -H ldap://127.0.0.1:3890/ -D "cn=Manager,dc=glpi,dc=org" -w insecure -c "dc=glpi,dc=org" || true
88

9-
for f in `ls $ROOT_DIR/phpunit/LDAP/ldif/*.ldif`; do
9+
for f in `ls $ROOT_DIR/tests/LDAP/ldif/*.ldif`; do
1010
cat $f | docker compose exec -T openldap ldapadd -x -H ldap://127.0.0.1:3890/ -D "cn=Manager,dc=glpi,dc=org" -w insecure
1111
done
Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,4 @@
11
#!/bin/bash
22
set -e -u -x -o pipefail
33

4-
# Get additional test arguments from -f, -d and -m options.
5-
SCOPE="-d tests/functional"
6-
METHODS=""
7-
while getopts ":d:f:m:" OPTNAME; do
8-
case $OPTNAME in
9-
d|f)
10-
SCOPE="-${OPTNAME} ${OPTARG}"
11-
;;
12-
m)
13-
METHODS="-m ${OPTARG}"
14-
;;
15-
\?)
16-
echo "Invalid option: -$OPTARG" >&2
17-
exit 1
18-
;;
19-
esac
20-
done
21-
22-
vendor/bin/atoum \
23-
-p 'php -d memory_limit=512M' \
24-
--debug \
25-
--force-terminal \
26-
--use-dot-report \
27-
--bootstrap-file tests/bootstrap.php \
28-
--fail-if-void-methods \
29-
--fail-if-skipped-methods \
30-
--no-code-coverage \
31-
--max-children-number 1 \
32-
$SCOPE \
33-
$METHODS
34-
35-
unset COVERAGE_DIR
4+
vendor/bin/phpunit $@

.github/actions/test_tests-imap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22
set -e -u -x -o pipefail
33

4-
vendor/bin/phpunit phpunit/imap $@
4+
vendor/bin/phpunit tests/imap $@

.github/actions/test_tests-ldap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22
set -e -u -x -o pipefail
33

4-
vendor/bin/phpunit phpunit/LDAP $@
4+
vendor/bin/phpunit tests/LDAP $@

.github/actions/test_tests-phpunit.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/actions/test_tests-web.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
set -e -u -x -o pipefail
33

44
bin/console config:set --context=inventory enabled_inventory 1
5-
vendor/bin/phpunit phpunit/web $@
5+
vendor/bin/phpunit tests/web $@
66
bin/console config:set --context=inventory enabled_inventory 0

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,6 @@ jobs:
206206
run: |
207207
.github/actions/init_initialize-9.5-db.sh
208208
docker compose exec -T app .github/actions/test_update-from-9.5.sh
209-
- name: "PHPUnit tests"
210-
if: "${{ success() || failure() }}"
211-
run: |
212-
docker compose exec -T app .github/actions/test_tests-phpunit.sh
213209
- name: "Functional tests"
214210
if: "${{ success() || failure() }}"
215211
run: |

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@
1616
/vendor/*
1717
!/vendor/.htaccess
1818
phpunit.xml
19+
/tests/config/
20+
/tests/coverage/
1921
/tests/cypress/screenshots/
2022
/tests/cypress/downloads/
2123
/tests/cypress/videos/
2224
/tests/files/
23-
/tests/code-coverage/
2425
/tests/.env
2526
/nbproject
2627
.composer.hash
@@ -41,9 +42,6 @@ phpunit.xml
4142
/.devcontainer/docker-compose.override.yaml
4243
phpstan.neon
4344
/.phpunit.result.cache
44-
/phpunit/files/
45-
/phpunit/config
46-
/phpunit/coverage/
4745
*.phar
4846
.env
4947
/resources/.illustrations_translations.php

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ npm: ## Run a npm command, example: make npm c='install mypackage/package'
147147
.PHONY: npm
148148

149149
## —— Testing and static analysis ——————————————————————————————————————————————
150-
phpunit: ## Run phpunits tests, example: make phpunit c='phpunit/functional/Glpi/MySpecificTest.php'
150+
phpunit: ## Run phpunits tests, example: make phpunit c='tests/functional/Glpi/MySpecificTest.php'
151151
@$(eval c ?=)
152152
@$(PHP) php vendor/bin/phpunit $(c)
153153
.PHONY: phpunit

PluginsMakefile.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ test: ## Run all our lints/tests/static analysis
125125
@$(call run_if_exists, phpunit.xml, phpunit)
126126
.PHONY: test
127127

128-
phpunit: ## Run phpunits tests, example: make phpunit c='phpunit/functional/Glpi/MySpecificTest.php'
128+
phpunit: ## Run phpunits tests, example: make phpunit c='tests/functional/Glpi/MySpecificTest.php'
129129
@$(eval c ?=)
130130
@$(PLUGIN) php $(PHPUNIT_BIN) $(c)
131131
.PHONY: phpunit

0 commit comments

Comments
 (0)