On Feb 28, 2007, at 2:55 PM, Doug Cutting (JIRA) wrote:

I'm sure you can find documentation on JUnit, but the short of it is that you implement a class that extends JUnit's TestCase whose class name starts with "Test", and that is placed in the src/test tree. Then you define methods within that class whose names begin with "test", and call JUnit's "assert" methods within these. These will then be run by "ant test".

The TestMapRed.java is a standalone MapReduce-based test, as is TestFileSystem.java. Even simpler, not MR tests are TestPath.java, etc. Tests based on MiniMRCluster are TestMiniMRLocalFS.

I added these (plus some other unit testing comments) to
http://wiki.apache.org/lucene-hadoop/HowToContribute

HTH,
Nige

Reply via email to