Tests > implement Codeception (instead of PHPUnit)

This commit is contained in:
Meritoo
2018-05-28 17:42:15 +02:00
parent 7382bce842
commit 233473d915
8 changed files with 30 additions and 75 deletions

View File

@@ -76,7 +76,6 @@ 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
@@ -97,9 +96,9 @@ dir.data.temporary = ${dir.data}/tmp
# Testing
# --------------------------------------------------------------------------------
# Path of the PHPUnit
# Path of the framework used to run unit tests
#
phpUnit.path = ./vendor/bin/phpunit
tests_framework.path = ./vendor/bin/codecept
# Path of the PHP Coding Standards Fixer (http://cs.sensiolabs.org)
#

View File

@@ -87,7 +87,7 @@
<!-- Test target -->
<target name="build:test"
depends="test:phpunit"
depends="test:unit"
description="Executes all tests" />
<!-- Project build clean -->
@@ -103,7 +103,6 @@
<!--<mkdir dir="${dir.docs}" />-->
<!--<mkdir dir="${dir.docs.phpdoc2}" />-->
<mkdir dir="${dir.reports}" />
<mkdir dir="${dir.reports.coverage}" />
<mkdir dir="${dir.reports.pdepend}" />
</target>
@@ -212,10 +211,9 @@
</target>
<!-- Unit tests -->
<target name="test:phpunit" description="Executes PHPUnit tests">
<target name="test:unit" description="Executes unit tests">
<echo msg="Running unit tests..." />
<exec command="${phpUnit.path} --verbose --no-coverage --configuration ${project.basedir}/phpunit.xml.dist"
passthru="true"/>
<exec command="${tests_framework.path} run --silent" passthru="true"/>
</target>
<!-- Checkout and finalization -->