Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…4-5d4b-11de-8abc-d1c337b90d21
  • Loading branch information
XirisR authored and XirisR committed Feb 1, 2010
1 parent bccf04a commit 29be00c
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions mongodb-morph/build.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?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" />
</fileset>

<fileset dir="integration-tests" id="integration-tests">
<include name="**/Test*.php" />
<exclude name="MongoTestCase.php" />
<exclude name="MongoUnit/*" />
<exclude name="IntegrationsTests.php" />
</fileset>

Expand All @@ -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">
Expand All @@ -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">
Expand All @@ -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" />
Expand All @@ -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>

Expand Down

0 comments on commit 29be00c

Please sign in to comment.