???????????????????
???????????? ???????[ 2013/6/19 15:52:21 ] ????????
???????? TestSuite ????????????????е?????????????????????????У??????????е?????????????? UnitTestSuite ?У????????ζ?????????????????????б?д?2???????ò??????????????????????????? TestSuite ?У??????????????±??? ?????
???????ж????? TestSuites????????????????? Ant ????Ant ???????????????????????????? component-test ??????????? ComponentTestSuite ????????嵥 2 ???????
?????嵥 2. ????????????? Ant ????
????<target name="component-test"
if="Junit.present"
depends="junit-present??compile-tests">
????<mkdir dir="${testreportdir}"/>
???? <junit dir="./" failureproperty="test.failure"
printSummary="yes"
fork="true" haltonerror="true">
????<sysproperty key="basedir" value="."/>
???? <formatter type="xml"/>
???? <formatter usefile="false" type="plain"/>
???? <classpath>
???? <path refid="build.classpath"/>
???? <pathelement path="${testclassesdir}"/>
???? <pathelement path="${classesdir}"/>
???? </classpath>
???? <batchtest todir="${testreportdir}">
???? <fileset dir="test">
???? <include name="**/ComponentTestSuite.java"/>
???? </fileset>
???? </batchtest>
???? </junit>
????</target>
????????????£???????е?????????????????????????????????????????????????????????????????????????????????????????嵥 3 ???????
?????嵥 3. ???????в???? Ant ????
????<target name="test-all" depends="unit-test??component-test??system-test"/>
???????????? TestSuite ??????????????????????????????????????????????????2???????????????????????????? TestSuite ?У???????????????????????????????????????? ???????±???????μ?????????????
??????????????
???????????? JUnit ??????????????????????????????????????????????????????????????????????е???????????????? unit ???У????е????????????????? component ???У??????????
???????磬?????????????δ???????? test ???У?????????????μ??????????嵥 4 ?????
?????嵥 4. ??????????????
????acme-proj/
test/
unit/
component/
system/
conf/
???????????Щ??????????????????? Ant ??????????????????????????????????????????????? 4 ???????????????????????????????????????????? ?嵥 3 ???????
?????? JUnit ????? ?嵥 2 ?ж????????????????????????????? batchtest ?????????????????fileset ??????????????????嵥 5 ???????У?????? unit ????
?????嵥 5. ???????????е??????? JUnit ????????????????
????<batchtest todir="${testreportdir}">
????<fileset dir="test/unit">
???? <include name="**/**Test.java"/>
????</fileset>
????</batchtest>
????????????????????? test/unit ???μ????в?????????????μ????????????????????κ?????????????????????????????£??????????????????????????′??????? TestSuite ????????????±????????????????????
?????????????
???????????????У??????????????????????????????????????????????????????????????????????????鼰??????????????????? Ant ??????????????? 4 ??????????????????????????????????????????Щ??????????????????????????????????? CruiseControl??????????????????????????????????????С??????????????????????????????????????????????С????У??????????????????????????????????????е????????
?????????????????????к??Σ????????????????????????? —— ????????С?????
???????????????????????δ???????????????????????????????????????????????????????????е???????????????????????????????????????????????????????????? 2006 ?????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11