diff --git a/autotest.sh b/autotest.sh
index a42c6ab059e4dd479de42c72f742a6903030670a..54f1eda9932ef6f69ddfdf1305f0361da516b375 100755
--- a/autotest.sh
+++ b/autotest.sh
@@ -86,7 +86,8 @@ function execute_tests {
 	#test execution
 	echo "Testing with $1 ..."
 	cd tests
-	php -f index.php -- xml $1 > autotest-results-$1.xml
+	#php -f index.php -- xml $1 > autotest-results-$1.xml
+	phpunit --log-junit autotest-results-$1.xml --coverage-clover autotest-clover-$1.xml
 }
 
 #