r73824 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73823‎ | r73824 | r73825 >
Date:20:19, 27 September 2010
Author:hashar
Status:ok
Tags:
Comment:
Adds a make target to build phpunit code coverage which will be generated to
/docs/code-coverage . You will need the Xdebug PHP extension to run code
coverage.
Modified paths:
  • /trunk/phase3/docs/code-coverage (added) (history)
  • /trunk/phase3/docs/code-coverage/README (added) (history)
  • /trunk/phase3/maintenance/tests/phpunit/Makefile (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/tests/phpunit/Makefile
@@ -1,20 +1,35 @@
2 -.PHONY: help test phpunit install
 2+.PHONY: help test phpunit install coverage
33
 4+CONFIG_FILE = suite.xml
 5+FLAGS =
 6+PU = phpunit --configuration ${CONFIG_FILE}
 7+
48 all test: phpunit
59
610 phpunit:
7 - phpunit --configuration suite.xml
 11+ ${PU}
812
913 install:
1014 pear channel-discover pear.phpunit.de
1115 pear install phpunit/PHPUnit
1216
1317 tap:
14 - phpunit --configuration suite.xml --tap
 18+ ${PU} --tap
1519
 20+coverage:
 21+ ${PU} --coverage-html ../../../docs/code-coverage
 22+
1623 help:
 24+ # Usage:
 25+ # make <target> [OPTION=value]
 26+ #
1727 # Targets:
1828 # phpunit (default) Run all the tests with phpunit
1929 # install Install PHPUnit from phpunit.de
2030 # tap Run the tests individually through Test::Harness's prove(1)
2131 # help You're looking at it!
 32+ # coverage Run the tests and generates an HTML code coverage report
 33+ # You will need the Xdebug PHP extension for the later.
 34+ # Options:
 35+ # CONFIG_FILE Path to a PHPUnit configuration file (default: suite.xml)
 36+ # FLAGS Additional flags to pass to PHPUnit
Index: trunk/phase3/docs/code-coverage/README
@@ -0,0 +1,2 @@
 2+This directory is for the auto-generated phpunit code coverage.
 3+Run 'make coverage' in the maintenance/tests/phpunit subdirectory to build.
Property changes on: trunk/phase3/docs/code-coverage
___________________________________________________________________
Added: svn:ignore
14 + *.css
*.gif
*.html
*.js
*.png

Status & tagging log