logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Grobmeier <grobme...@gmail.com>
Subject Removing the ant junit testing
Date Fri, 19 Aug 2011 11:14:01 GMT
We have discussed recently the sense of antrun doing junit test, bypassing mvn.
Curt mentioned that this probably has been done because of several
cleanup actions which were not made by mvn.

I have attached patch below, which comments the antrun for junit.
After this patch i could run mvn test and did not see a difference to
the previous solution. 237 tests were running, without failures. After
running it, I had one folder generated by the testing (output). With
antrun I had two which were not cleaned up for some reasons, output
and classes.

So it looks as it would work without ant.

My suggestion is as follows:

- apply the patch below
- mv tests/src/java to src/test/java (standard by mvn)
- mv tests/resources to src/test/resources (standard by mvn)
- move the test/input + witness files to src/test/resources
- change the test cases to generate their output into target/test-work/output
- remove the junit portions from ant buildfiles

After that we should have an easier testing process.

Any objections why we should not do that?

The only reason I could imagine is that 1.2.x series is going to die
soon. I am not sure if we should do the effort. For this question I
would love to hear some opions


### Eclipse Workspace Patch 1.0
#P log4j-12-trunk
Index: pom.xml
--- pom.xml	(revision 1159577)
+++ pom.xml	(working copy)
@@ -100,7 +100,7 @@
-          <skip>true</skip>
+          <skip>false</skip>
@@ -180,6 +180,7 @@
           <!--   generate NTEventLogAppender.dll    -->
+          <!--
@@ -197,7 +198,9 @@
+           -->
           <!--   create tests/output prior to test run    -->
+          <!--
@@ -239,6 +242,7 @@
+          -->
           <!--   release builds will put SVN tags into the SCM page,
this changes it back to trunk  -->

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message