mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Phing > tests > do not create database (for code coverage)
This commit is contained in:
@@ -98,10 +98,6 @@ dir.data.temporary = ${dir.data}/tmp
|
|||||||
# Testing
|
# Testing
|
||||||
# --------------------------------------------------------------------------------
|
# --------------------------------------------------------------------------------
|
||||||
|
|
||||||
# Test database path
|
|
||||||
#
|
|
||||||
tests.database = ${dir.data.temporary}/database.sqlite
|
|
||||||
|
|
||||||
# Path of the PHPUnit
|
# Path of the PHPUnit
|
||||||
#
|
#
|
||||||
phpUnit.path = ./vendor/bin/phpunit
|
phpUnit.path = ./vendor/bin/phpunit
|
||||||
|
|||||||
@@ -213,7 +213,6 @@
|
|||||||
|
|
||||||
<!-- Unit tests -->
|
<!-- Unit tests -->
|
||||||
<target name="test:phpunit" description="Executes PHPUnit tests">
|
<target name="test:phpunit" description="Executes PHPUnit tests">
|
||||||
<!-- Check test database -->
|
|
||||||
<if>
|
<if>
|
||||||
<not>
|
<not>
|
||||||
<available file="${dir.data.tests}" type="dir" property="dir.data.tests.available" />
|
<available file="${dir.data.tests}" type="dir" property="dir.data.tests.available" />
|
||||||
@@ -222,19 +221,9 @@
|
|||||||
<mkdir dir="${dir.data.tests}" />
|
<mkdir dir="${dir.data.tests}" />
|
||||||
</then>
|
</then>
|
||||||
</if>
|
</if>
|
||||||
<if>
|
|
||||||
<not>
|
|
||||||
<available file="${tests.database}" property="tests.database.available" />
|
|
||||||
</not>
|
|
||||||
<then>
|
|
||||||
<touch file="${tests.database}" />
|
|
||||||
</then>
|
|
||||||
</if>
|
|
||||||
<echo msg="Running unit tests..." />
|
<echo msg="Running unit tests..." />
|
||||||
<coverage-setup database="${dir.reports.coverage}/coverage.db">
|
<exec command="${phpUnit.path} --verbose --no-coverage --configuration ${project.basedir}/phpunit.xml.dist"
|
||||||
<fileset refid="sourcecode" />
|
passthru="true"/>
|
||||||
</coverage-setup>
|
|
||||||
<exec command="${phpUnit.path} --verbose --configuration ${project.basedir}/phpunit.xml.dist" passthru="true" />
|
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- Checkout and finalization -->
|
<!-- Checkout and finalization -->
|
||||||
|
|||||||
Reference in New Issue
Block a user