Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

git-svn-id: http://mongodb-morph.googlecode.com/svn/trunk@123 406649b…

…4-5d4b-11de-8abc-d1c337b90d21
  • Loading branch information...
commit 29be00c9310c02f0c481b4286a92c5633b38768a 1 parent bccf04a
XirisR authored
Showing with 12 additions and 11 deletions.
  1. +12 −11 mongodb-morph/build.xml
View
23 mongodb-morph/build.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project name="Mongo Object" default="api-docs" basedir=".">
+<project name="Mongo Object" default="api-docs">
<fileset dir="unit-tests" id="unit-tests">
<include name="**/Test*.php" />
@@ -7,7 +7,7 @@
<fileset dir="integration-tests" id="integration-tests">
<include name="**/Test*.php" />
- <exclude name="MongoTestCase.php" />
+ <exclude name="MongoUnit/*" />
<exclude name="IntegrationsTests.php" />
</fileset>
@@ -17,9 +17,7 @@
<target name="api-docs" description="Creates Morph documentation">
<echo msg="Starting Creation of API Documentation" />
- <delete dir="doc/api" quiet="true" includeemptydirs="true" verbose="false"
- failonerror="false" />
-
+ <delete dir="doc/api" quiet="true" includeemptydirs="true" verbose="false" failonerror="false" />
<mkdir dir="doc" />
<phpdoc title="Morph Documentation" destdir="doc/api" sourcecode="yes"
output="HTML:frames:DOM/default" quiet="true" defaultpackagename="Morph">
@@ -33,7 +31,7 @@
<echo msg="API Documentation Complete" />
</target>
- <target name="test-report" description="Runs Morph unit tests">
+ <target name="unit-report" description="Runs Morph unit tests">
<echo msg="Starting Unit Test Suite" />
<phpunit haltonfailure="false" haltonerror="false" printsummary="true">
@@ -43,8 +41,7 @@
</batchtest>
</phpunit>
- <delete dir="doc/test_report" quiet="true" includeemptydirs="true"
- verbose="false" failonerror="false" />
+ <delete dir="doc/test_report" quiet="true" includeemptydirs="true" verbose="false" failonerror="false" />
<mkdir dir="doc/test_report" />
<phpunitreport infile="test-report.xml" format="frames"
todir="doc/test_report" />
@@ -56,16 +53,20 @@
<exec command="phpunit --coverage-html doc/coverage/ unit-tests/AllTests.php" checkreturn="false" />
</target>
- <target name="test-integration" description="Runs Morph integration tests">
+ <target name="integration-report" description="Runs Morph integration tests">
<echo msg="Starting Integration Test Suite" />
- <phpunit haltonfailure="false" haltonerror="false" printsummary="false">
+ <phpunit haltonfailure="false" haltonerror="false" printsummary="true">
+ <formatter type="xml" outfile="integration-tests.xml" />
<formatter type="plain" usefile="false" />
<batchtest>
<fileset refid="integration-tests" />
</batchtest>
</phpunit>
-
+ <delete dir="doc/integration_report" quiet="true" includeemptydirs="true" verbose="false" failonerror="false" />
+ <mkdir dir="doc/integration_report" />
+ <phpunitreport infile="integration-tests.xml" format="frames" todir="doc/integration_report" />
+ <delete file="integration-tests.xml"/>
<echo msg="Integration Test Suite Complete" />
</target>
Please sign in to comment.
Something went wrong with that request. Please try again.