Updated PHPUnit and APIGen

This commit is contained in:
Abel Hoogeveen 2015-05-01 20:40:10 +02:00
parent ab1ee28e40
commit 2e571c8324
2 changed files with 28 additions and 10 deletions

View File

@ -7,23 +7,25 @@
<target name="prepare"> <target name="prepare">
<mkdir dir="${basedir}/build/logs" /> <mkdir dir="${basedir}/build/logs" />
<mkdir dir="${basedir}/build/clover" /> <mkdir dir="${basedir}/build/clover" />
<mkdir dir="${basedir}/build/phpdoc" />
</target> </target>
<target name="phpunit"> <target name="phpdoc">
<exec dir="${basedir}" executable="php" failonerror="true"> <exec dir="${basedir}" executable="php" failonerror="true">
<arg value="phpunit.phar"/> <arg value="apigen.phar"/>
<arg line="--configuration phpunit.xml <arg line="generate --source .
--log-junit ${basedir}/build/logs/phpunit.xml --exclude 'tests/*'
--coverage-clover ${basedir}/build/logs/clover.xml --exclude 'Core/System/Smarty/*'
--coverage-html ${basedir}/build/clover" /> --title 'FuzeWorks Documentation build #${buildNumber}'
--destination build/phpdoc" />
</exec> </exec>
</target> </target>
<target name="zip"> <target name="zip">
<exec dir="${basedir}" executable="zip" failonerror="true"> <exec dir="${basedir}" executable="zip" failonerror="true">
<arg line="-r ${basedir}/build/fuzeworks-core.zip . -x build\* tests\*" /> <arg line="-r ${basedir}/build/fuzeworks-core.zip . -x build\* tests\* .git\*" />
</exec> </exec>
</target> </target>
<target name="build" depends="clean,prepare,phpunit,zip" /> <target name="build" depends="clean,prepare,phpdoc,zip" />
</project> </project>

View File

@ -1,8 +1,24 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd" <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd"
bootstrap="load.php"> bootstrap="load.php"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="false"
mapTestClassNameToCoveredClassName="false"
printerClass="PHPUnit_TextUI_ResultPrinter"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
timeoutForSmallTests="1"
timeoutForMediumTests="10"
timeoutForLargeTests="60"
verbose="true">
<testsuites> <testsuites>
<testsuite name="FuzeWorks Core Tests"> <testsuite name="Core Functionality">
<directory>tests</directory> <directory>tests</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>