Execute your CakePHP tests in your IDE

Published on and tagged with testing  tip

If you use an IDE that supports Ant, like PHPEclipse, you can simply add the following Ant script to your project:

<?xml version="1.0"?>
<project name="YOUR_PROJECT" default="test">
	<property name="scriptsDir" value="PATH_TO_SCRIPTS_DIR" />
	<target name="test">
		<exec dir="${scriptsDir}" executable="php">
			<arg line="test.php" />

Update (2006-01-10): This script is no longer useful because scripts/test.php has been removed from CakePHP.

7 comments baked

© daniel hofstetter. Licensed under a Creative Commons License