Skip to content
Snippets Groups Projects
Commit 87fb540c authored by Andrew Hoffmann's avatar Andrew Hoffmann
Browse files

The PHPUnit test suite that is run is now configurable via a Phing property....

The PHPUnit test suite that is run is now configurable via a Phing property. Added code coverage. Did not make coverage optional, since it's pretty quick right now.
parent 882691fa
No related branches found
No related tags found
1 merge request!8SonarQube Analysis Configuration
......@@ -5,13 +5,15 @@
<property name="composer.phar" value="${project.basedir}/composer.phar"/>
<property name="composer.version" value="1.0.0"/>
<property name="git.upstream" value="git@git.doit.wisc.edu:adi-ia/cbs-techstore-client-php.git"/>
<property name="phpunit.testsuite" value="unit"/>
<property name="release.targetDirectory" value="${project.basedir}/target"/>
<property name="release.version" value="false"/>
<target name="main" depends="test"/>
<target name="test" depends="composer-install">
<exec dir="${build.workingDirectory}" command="${build.workingDirectory}/vendor/bin/phpunit --testsuite unit"
<exec dir="${build.workingDirectory}"
command="${build.workingDirectory}/vendor/bin/phpunit --testsuite ${phpunit.testsuite}"
passthru="true" checkreturn="true" />
</target>
......
......@@ -26,6 +26,8 @@
<logging>
<log type="junit" target="reports/phpunit.xml"/>
<log type="coverage-clover" target="reports/phpunit-coverage-clover.xml"/>
<log type="coverage-html" target="reports/phpunit-coverage-html"/>
</logging>
</phpunit>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment