incubator-easyant-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlboud...@apache.org
Subject svn commit: r1366062 - in /incubator/easyant/plugins/trunk/abstract-test/src: main/resources/abstract-test.ant test/ test/antunit/ test/antunit/abstract-test-test.xml
Date Thu, 26 Jul 2012 16:07:13 GMT
Author: jlboudart
Date: Thu Jul 26 16:07:12 2012
New Revision: 1366062

URL: http://svn.apache.org/viewvc?rev=1366062&view=rev
Log:
add abstract-test testcase

Added:
    incubator/easyant/plugins/trunk/abstract-test/src/test/
    incubator/easyant/plugins/trunk/abstract-test/src/test/antunit/
    incubator/easyant/plugins/trunk/abstract-test/src/test/antunit/abstract-test-test.xml
Modified:
    incubator/easyant/plugins/trunk/abstract-test/src/main/resources/abstract-test.ant

Modified: incubator/easyant/plugins/trunk/abstract-test/src/main/resources/abstract-test.ant
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/abstract-test/src/main/resources/abstract-test.ant?rev=1366062&r1=1366061&r2=1366062&view=diff
==============================================================================
--- incubator/easyant/plugins/trunk/abstract-test/src/main/resources/abstract-test.ant (original)
+++ incubator/easyant/plugins/trunk/abstract-test/src/main/resources/abstract-test.ant Thu
Jul 26 16:07:12 2012
@@ -42,9 +42,9 @@
         <ea:parameter property="src.test.integration.resources" default="${basedir}/src/integration-test/resources"
                 description="directory for integration test resources (configuration files,
data files, etc)"/>
 
-        <ea:parameter property="target.test.xml" required="true" 
+        <ea:parameter property="target.test.xml" default="${target}/test/xml" 
             description="destination directory for xml test report" />
-        <ea:parameter property="target.test.html" required="true" 
+        <ea:parameter property="target.test.html" default="${target}/test/html"
             description="destination directory for html test report" />
 
         <ea:parameter property="test.mode" default="run"

Added: incubator/easyant/plugins/trunk/abstract-test/src/test/antunit/abstract-test-test.xml
URL: http://svn.apache.org/viewvc/incubator/easyant/plugins/trunk/abstract-test/src/test/antunit/abstract-test-test.xml?rev=1366062&view=auto
==============================================================================
--- incubator/easyant/plugins/trunk/abstract-test/src/test/antunit/abstract-test-test.xml
(added)
+++ incubator/easyant/plugins/trunk/abstract-test/src/test/antunit/abstract-test-test.xml
Thu Jul 26 16:07:12 2012
@@ -0,0 +1,76 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<project name="org.apache.easyant.plugins;abstract-test-test" 
+    xmlns:au="antlib:org.apache.ant.antunit" 
+    xmlns:ivy="antlib:org.apache.ivy.ant"
+    xmlns:ea="antlib:org.apache.easyant">
+    
+    <!-- Import your plugin --> 
+    <property name="target" value="target/test-antunit"/>
+    <!-- configure easyant in current project -->
+    <ea:configure-easyant-ivy-instance />
+    <!-- import our local plugin -->
+    <ea:import-test-module moduleIvy="../../../module.ivy" sourceDirectory="../../main/resources"/>
+   
+    <!-- Defines a setUp / tearDown (before each test) that cleans the environnement -->

+    <target name="clean" description="remove stale build artifacts before / after each
test">
+        <delete dir="${basedir}" includeemptydirs="true">
+            <include name="**/target/**"/>
+            <include name="**/lib/**"/>
+        </delete>
+    </target>
+    
+    <target name="setUp" depends="clean"/>
+    <target name="tearDown" depends="clean"/>
+    
+    <target name="test-abstract-test:init" depends="abstract-test:init">
+        <au:assertPropertyEquals name="src.test.resources" value="${basedir}/src/test/resources"/>
+        <au:assertPropertyEquals name="src.test.integration.resources" value="${basedir}/src/integration-test/resources"/>
+        <au:assertPropertyEquals name="target.test.xml" value="${target}/test/xml"/>
+        <au:assertPropertyEquals name="target.test.html" value="${target}/test/html"/>
+        <au:assertPropertyEquals name="test.mode" value="run"/>
+        <au:assertPropertyEquals name="test.run.failonerror" value="true"/>
+        <au:assertPropertyEquals name="test.run.dir" value="${basedir}"/>
+        <au:assertPropertyEquals name="test.integration.run.dir" value="${basedir}"/>
+        <au:assertPropertyEquals name="test.integration.scan.path" value="false"/>
+        <au:assertPropertyEquals name="test.integration.jar.pattern" value=".*-test.jar"/>
+        <au:assertPropertyEquals name="test.run.includes.pattern" value="**/*"/>
+        <au:assertPropertyEquals name="test.run.excludes.pattern" value=""/>
+        <au:assertPropertyEquals name="test.integration.run.includes.pattern" value="**/*"/>
+        <au:assertPropertyEquals name="test.integration.run.excludes.pattern" value=""/>
+        <au:assertPropertyEquals name="target.test.classes" value="${target}/test/classes"/>
+        <au:assertPropertyEquals name="target.test.integration.classes" value="${target}/integration-test/classes"/>
+        <au:assertReferenceSet refid="run.test.classpath"/>
+        <au:assertReferenceSet refid="run.test.integration.classpath"/>
+        <au:assertPropertyEquals name="test.mode.run" value="true"/>
+        <au:assertFalse>
+           <isset property="test.mode.report"/>
+        </au:assertFalse>
+    </target>
+
+    <target name="test-/skip-tests" depends="/skip-tests">
+        <au:assertPropertyEquals name="skip.test" value="true"/>
+        <au:assertPropertyEquals name="skip.test.integration" value="true"/>
+    </target>
+   
+    <!-- TODO: add abstract-test:compute-test-sets case 
+    <target name="test-abstract-test:compute-test-sets" depends="abstract-test:compute-test-sets">
+    </target>
+    -->
+ 
+
+</project>



Mime
View raw message