hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinod Kumar Vavilapalli (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-2775) [HOD] Put in place unit test framework for HOD
Date Fri, 15 Feb 2008 06:49:08 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Vinod Kumar Vavilapalli updated HADOOP-2775:

    Attachment: patch_unittesting.2

    * moved the tests to hod/Testing. Changed build.xml to reflect this too.
    * 'excludes' now handles only modules starting with 'test'. Files not starting with 'test'
like main.py, __init__.py are automatically excluded.
    * Refactored code from each module's ModuleTestSuite class to a base class BaseTestSuite
in Testing/lib.py. Changed how we pick up names of testclasses also.
    * All the test classes now begin with test_ (and not _test_). Changed SuiteCallers method
from testModule() to RunModuleTests() so that it doesn't clash with name convention of test
    * Output from the tests is fixed now to be in correct order.
    * Earlier failure of some test module due to say syntax errors kills the whole test process.
It's handled now to continue despite errors in some test modules.
    * Made test target depend on compile target, so that ant test can be directly run after
making changes 

> [HOD] Put in place unit test framework for HOD
> ----------------------------------------------
>                 Key: HADOOP-2775
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2775
>             Project: Hadoop Core
>          Issue Type: Test
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>            Reporter: Hemanth Yamijala
>            Assignee: Vinod Kumar Vavilapalli
>             Fix For: 0.17.0
>         Attachments: patch_unittesting, patch_unittesting.1, patch_unittesting.2
> HOD does not have any unit tests in place currently. This issue is to decide on a framework
that would be effective for our python code base. Something on the lines of pyUnit would be
good. The fix should put in place any dependencies needed for running the tests, and should
also define some tests that demonstrate how to write further tests. We would not be defining
a complete unit test suite for the entire code base right now, but would incrementatlly add
tests as changes are made.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message