[moriarty] r253 committed - Testing Phing build script to run tests

0 views
Skip to first unread message

mori...@googlecode.com

unread,
Feb 20, 2010, 10:15:40 AM2/20/10
to moriar...@googlegroups.com
Revision: 253
Author: ajbate
Date: Sat Feb 20 07:14:42 2010
Log: Testing Phing build script to run tests
http://code.google.com/p/moriarty/source/detail?r=253

Added:
/trunk/etc/phingBootstrap-ab.php
/trunk/phing.xml

=======================================
--- /dev/null
+++ /trunk/etc/phingBootstrap-ab.php Sat Feb 20 07:14:42 2010
@@ -0,0 +1,16 @@
+<?php
+/*
+ * Set up required environment for the Phing build file.
+ */
+define('MORIARTY_DIR',dirname(dirname(__FILE__)). DIRECTORY_SEPARATOR);
+define('MORIARTY_ARC_DIR',"/Users/andrew/Development/arc/");
+
+require_once MORIARTY_DIR . '/tests/fakehttprequest.class.php';
+require_once MORIARTY_DIR . '/tests/fakerequestfactory.class.php';
+
+ini_set('include_path',
+ ini_get('include_path')
+ .PATH_SEPARATOR.MORIARTY_DIR
+ .PATH_SEPARATOR.MORIARTY_ARC_DIR
+);
+?>
=======================================
--- /dev/null
+++ /trunk/phing.xml Sat Feb 20 07:14:42 2010
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+
+<project name="Moriarty" basedir="." default="test">
+ <target name="test">
+ <phpunit bootstrap="etc/phingBootstrap-ab.php">
+ <formatter type="plain" usefile="false" />
+ <batchtest>
+ <fileset dir="tests">
+ <include name="*.test.php" />
+ <!-- Seems to be a problem with this test below... -->
+ <exclude name="graphpath.test.php" />
+ </fileset>
+ </batchtest>
+ </phpunit>
+ </target>
+</project>

Reply all
Reply to author
Forward
0 new messages