Skip to content

Commit b3613d1

Browse files
committed
Re-add coverage param to phpunit test
This also makes changes: * Remove `make test-phpunit`, it is a part of `make validate` * Use ubuntu 16.04 so we have phpdbg 7.0 available * More verbosity.
1 parent ea8e826 commit b3613d1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
citest:
3131
name: CI test
3232
needs: selftest
33-
runs-on: ubuntu-18.04
33+
runs-on: ubuntu-16.04
3434

3535
services:
3636
postgres:
@@ -101,7 +101,6 @@ jobs:
101101
env:
102102
MOODLE_BRANCH: ${{ matrix.moodle-branch }}
103103
run: |
104-
make test-phpunit
105104
moodle-plugin-ci phplint
106105
moodle-plugin-ci phpcpd
107106
moodle-plugin-ci phpmd
@@ -114,6 +113,6 @@ jobs:
114113
"$MOODLE_BRANCH" != 'MOODLE_310_STABLE' -a \
115114
"$MOODLE_BRANCH" != 'MOODLE_39_STABLE' ]
116115
moodle-plugin-ci phpdoc
117-
moodle-plugin-ci phpunit
116+
moodle-plugin-ci phpunit --verbose --coverage-text
118117
moodle-plugin-ci behat --profile default
119118
moodle-plugin-ci behat --profile chrome

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ test-fixer: build/php-cs-fixer.phar
1313

1414
.PHONY:test-phpunit
1515
test-phpunit: vendor/autoload.php
16-
$(PHPUNIT)
16+
$(PHPUNIT) --verbose
1717

1818
.PHONY:validate
1919
validate: build/php-cs-fixer.phar vendor/autoload.php psalm check-docs
2020
$(FIXER) fix --dry-run --stop-on-violation
2121
$(COMPOSER) validate
22+
phpdbg --version
2223
phpdbg -d memory_limit=-1 -qrr $(PHPUNIT) --coverage-text
2324

2425
.PHONY:psalm

0 commit comments

Comments
 (0)