Browse Source

properly clean up test directory

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@689105 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 17 years ago
parent
commit
05bffcf9f0
2 changed files with 8 additions and 1 deletions
  1. +1
    -1
      src/etc/testcases/taskdefs/optional/junit.xml
  2. +7
    -0
      src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestListenerTest.java

+ 1
- 1
src/etc/testcases/taskdefs/optional/junit.xml View File

@@ -25,7 +25,7 @@

<target name="cleanup">
<delete file="testlog.txt"/>
<delete dir="out" includeemptydirs="true" failonerror="false"/>
<delete dir="out"/>
</target>

<target name="testForkedOutput">


+ 7
- 0
src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestListenerTest.java View File

@@ -37,6 +37,13 @@ public class JUnitTestListenerTest extends BuildFileTest {
configureProject("src/etc/testcases/taskdefs/optional/junit.xml");
}

/**
* The teardown method for JUnit.
*/
public void tearDown() {
executeTarget("cleanup");
}

public void testFullLogOutput() {
executeTarget(PASS_TEST_TARGET);
assertTrue("expecting full log to have BuildListener events",


Loading…
Cancel
Save