Phing > tests > do not create database (for code coverage)

This commit is contained in:
Meritoo
2018-05-28 17:03:19 +02:00
parent bc54f734e2
commit c5b42017d2
2 changed files with 2 additions and 17 deletions

View File

@@ -98,10 +98,6 @@ dir.data.temporary = ${dir.data}/tmp
# Testing
# --------------------------------------------------------------------------------
# Test database path
#
tests.database = ${dir.data.temporary}/database.sqlite
# Path of the PHPUnit
#
phpUnit.path = ./vendor/bin/phpunit

View File

@@ -213,7 +213,6 @@
<!-- Unit tests -->
<target name="test:phpunit" description="Executes PHPUnit tests">
<!-- Check test database -->
<if>
<not>
<available file="${dir.data.tests}" type="dir" property="dir.data.tests.available" />
@@ -222,19 +221,9 @@
<mkdir dir="${dir.data.tests}" />
</then>
</if>
<if>
<not>
<available file="${tests.database}" property="tests.database.available" />
</not>
<then>
<touch file="${tests.database}" />
</then>
</if>
<echo msg="Running unit tests..." />
<coverage-setup database="${dir.reports.coverage}/coverage.db">
<fileset refid="sourcecode" />
</coverage-setup>
<exec command="${phpUnit.path} --verbose --configuration ${project.basedir}/phpunit.xml.dist" passthru="true" />
<exec command="${phpUnit.path} --verbose --no-coverage --configuration ${project.basedir}/phpunit.xml.dist"
passthru="true"/>
</target>
<!-- Checkout and finalization -->