You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by mi...@apache.org on 2015/01/21 17:27:55 UTC
[3/3] git commit: [flex-utilities] [refs/heads/develop] - FLEX-34721
Made the Squiggly test running extensible - now when you write unit tests for
other sub-projects, such as SpellingEngine,
you can run them by adding a new line in the 'unit-tests' targe
FLEX-34721 Made the Squiggly test running extensible - now when you write unit tests for other sub-projects, such as SpellingEngine, you can run them by adding a new line in the 'unit-tests' target of Squiggly/main/build.xml, on the model of the ones already there. Then you add a build.xml file in the sub-project you're testing, which includes a target called 'unit-tests' and is the same as the one in Squiggly/main/SpellingUIEx/build.xml.
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/0649b103
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/0649b103
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/0649b103
Branch: refs/heads/develop
Commit: 0649b1036383d458021d6af22cf7f18d9d9c70a7
Parents: 7f12309
Author: Mihai Chira <mi...@apache.org>
Authored: Wed Jan 21 16:27:28 2015 +0000
Committer: Mihai Chira <mi...@apache.org>
Committed: Wed Jan 21 16:27:28 2015 +0000
----------------------------------------------------------------------
Squiggly/main/SpellingUI/build.xml | 27 +++++++++++++++++++++++++++
Squiggly/main/SpellingUIEx/build.xml | 27 +++++++++++++++++++++++++++
Squiggly/main/build.xml | 6 ++----
3 files changed, 56 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/0649b103/Squiggly/main/SpellingUI/build.xml
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUI/build.xml b/Squiggly/main/SpellingUI/build.xml
new file mode 100644
index 0000000..2ac36a1
--- /dev/null
+++ b/Squiggly/main/SpellingUI/build.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" ?>
+<!--
+
+ 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 default="unit-tests" basedir=".">
+ <target name="unit-tests" description="Runs the FlexUnit tests for this project">
+ <ant antfile="${FLEX_HOME}/flexunit-tests.xml">
+ <property name="project.root" value="${basedir}"/>
+ <property name="project.libs" value="${basedir}/../libs"/>
+ </ant>
+ </target>
+</project>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/0649b103/Squiggly/main/SpellingUIEx/build.xml
----------------------------------------------------------------------
diff --git a/Squiggly/main/SpellingUIEx/build.xml b/Squiggly/main/SpellingUIEx/build.xml
new file mode 100644
index 0000000..2ac36a1
--- /dev/null
+++ b/Squiggly/main/SpellingUIEx/build.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" ?>
+<!--
+
+ 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 default="unit-tests" basedir=".">
+ <target name="unit-tests" description="Runs the FlexUnit tests for this project">
+ <ant antfile="${FLEX_HOME}/flexunit-tests.xml">
+ <property name="project.root" value="${basedir}"/>
+ <property name="project.libs" value="${basedir}/../libs"/>
+ </ant>
+ </target>
+</project>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/0649b103/Squiggly/main/build.xml
----------------------------------------------------------------------
diff --git a/Squiggly/main/build.xml b/Squiggly/main/build.xml
index 98c94fb..d0be172 100644
--- a/Squiggly/main/build.xml
+++ b/Squiggly/main/build.xml
@@ -281,9 +281,7 @@
</target>
<target name="unit-tests" description="Runs the FlexUnit tests for this project">
- <ant antfile="${FLEX_HOME}/flexunit-tests.xml">
- <property name="project.root" value="${basedir}/SpellingUIEx"/>
- <property name="project.libs" value="${basedir}/libs"/>
- </ant>
+ <ant dir="SpellingUIEx" target="unit-tests" />
+ <ant dir="SpellingUI" target="unit-tests" />
</target>
</project>