Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F18676575
D3839.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
893 B
Referenced Files
None
Subscribers
None
D3839.diff
View Options
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -8,9 +8,15 @@
RM=rm -f
RMDIR=rm -rf
+MKDIR=mkdir -p
GENERATED_FROM_TEMPLATES=phpcs.xml phpunit.xml
+PHP=php
+PHPUNIT=vendor/bin/phpunit
+PHP_EXTENSIONS != php -r 'echo ini_get("extension_dir");'
+XDEBUG=xdebug.so
+
# -------------------------------------------------------------
# Main targets
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -47,3 +53,13 @@
composer.json:
_utils/templates/generate-compose-json.php > composer.json
+
+# -------------------------------------------------------------
+# Test targets
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+coverage:
+ $(MKDIR) .phpunit.cache/coverage/html
+
+ $(PHP) -d zend_extension=$(PHP_EXTENSIONS)/$(XDEBUG) -d xdebug.mode=coverage \
+ $(PHPUNIT) --coverage-html .phpunit.cache/coverage/html
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 21, 06:36 (7 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3282626
Default Alt Text
D3839.diff (893 B)
Attached To
Mode
D3839: Generate code coverage report
Attached
Detach File
Event Timeline
Log In to Comment