Tests > implement PHPUnit (instead of Codeception)

This commit is contained in:
Meritoo
2018-06-07 20:51:55 +02:00
parent 8a6262a8c3
commit c351ce887a
8 changed files with 64 additions and 28 deletions

View File

@@ -76,6 +76,7 @@ dir.tests = ${project.basedir}/tests
dir.build = ${project.basedir}/build
dir.reports = ${dir.build}/logs
dir.reports.pdepend = ${dir.reports}/pdepend
dir.reports.coverage = ${dir.reports}/phpunit_coverage
#
# Disabled, because unnecessary right now
# phpdocumentor/phpdocumentor cannot be installed via Composer
@@ -98,7 +99,7 @@ dir.data.temporary = ${dir.data}/tmp
# Path of the framework used to run unit tests
#
tests.framework.path = ./vendor/bin/codecept
tests.framework.path = ./vendor/bin/phpunit --verbose --no-coverage --testdox
# Path of the PHP Coding Standards Fixer (http://cs.sensiolabs.org)
#

View File

@@ -104,6 +104,7 @@
<!--<mkdir dir="${dir.docs.phpdoc2}" />-->
<mkdir dir="${dir.reports}" />
<mkdir dir="${dir.reports.pdepend}" />
<mkdir dir="${dir.reports.coverage}"/>
</target>
<!-- PHPDocumentor2 API documentation target -->
@@ -213,7 +214,7 @@
<!-- Unit tests -->
<target name="test:unit" description="Executes unit tests">
<echo msg="Running unit tests..." />
<exec command="${tests.framework.path} run --silent" passthru="true"/>
<exec command="${tests.framework.path}" passthru="true"/>
</target>
<!-- Checkout and finalization -->