I am developing a small project in PHP, I am in the phase of the tests with phing
. When I execute phpunit
I run the tests (without any error) but when I create a build.xml file to execute it with phing
from the XAMPP Shell it tells me that no test has been executed.
This is my build.xml:
<?xml version="1.0"?>
<project name="BUILD" default="build">
<target name="create_data_base">
<pdosqlexec url="mysql:host=localhost;dbname=test" userid="root" password="">
<transaction src="db/login.sql"/>
</pdosqlexec>
</target>
<target name="clean">
<delete dir="../ProyectoLogin/reports"/>
</target>
<target name="prepare">
<mkdir dir="../ProyectoLogin/reports"/>
</target>
<target name="tests">
<phpunit haltonfailure="true" pharlocation="C:\xampp\php\phpunit.phar" printsummary="true">
<formatter todir="reports" type="xml"/>
<batchtest>
<fileset dir="tests">
<include name="**/*Test*.php"/>
</fileset>
</batchtest>
</phpunit>
</target>
<target name="build" depends="create_data_base,clean,prepare,tests"/>
The php version is 7.2.5, the phpunit version is 7.2.4 and the phing version is 2.16.1.
Any suggestions?