|
Patch has been attached for the review and comments or approval.
Please let me know if someone has any concerns or suggestions. This patch uses @BeforeMethod/@AfterMethod annotations to replace hardcoded inter-tests dependencies.
With this technique the overall maintenance would be significantly lower. Consider this patch candidate instead of earlier submitted Overall this looks good. A few comments:
Thanks for the comments, Doug.
Couple of replies:
Also, I'd suggest to rename compile-java-test to compile-test-java to be Cos
dumpCommand="true" is no longer needed in the production version of the build.xml
A few comments on the latest patch:
All comment's from Doug last review are taken into account. Namely:
The patch looks good now.
I miss JUnit's plain text output that included any print statements. Perhaps we could add a listener that prints each test run along with its success or failure? Thanks for the reviews, Doug.
The other day we have a short discussion about this with Nigel and I've Cos This patch introduces a solution for JUnit like plain test reporting output. In order to use it one needs to modify existing listeners line of build.xml to
listeners="org.apache.avro.MyOutputInterceptor, org.apache.avro.SuiteInterceptor" As the result, testng runs will produce something like this (although, properly aligned) [testng] org.apache.avro.TestSchema.testString Pass ( 19 ms) This sounds nice.
Will merge these in a second: I felt like sending them separately in order to
present them separately. And renaming them totally makes sense. Wrt placement of the classes: shall we pull them off avro at all, so other I'd vote for System.out - these are normal reporting output. System.err is Thanks, > org.apache.hadoop.common.test ?
Let's wait until we move them to do that. Output interceptors are moved to org.apache.avro.test package
Modifications of JSON schema are merged into the test sources I just committed this. Thanks, Konstantin.
Just to give a heads-up on the status of the progress of JUnit tests conversion into TestNG in the Hadoop.
It seems that Hadoop and ZooKeeper are backing off from the whole TestNG thing, because the transition's overhead is too big to bear. Please contact me directly if you The general approach for the rest of Hadoop is to keep going with JUnit framework and solve our tagging needs with JUnit's test suite mechanism. Considering the future merging of Avro to Hadoop and an obvious requirement of having a single test framework, I'd suggest to think of 'reverse' conversion of TestNG tests back to JUnit. I think a mere exclusion of the current patch won't work. Konstantin, can you please file a new issue to switch Avro back to JUnit? Thanks!
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tests invocation remain the same: it could be executed either through 'test' for all languages or through 'test-java' for java. Interop test interfaces are remained as before too.