hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eli Collins (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HDFS-669) Add unit tests
Date Wed, 07 Oct 2009 22:11:31 GMT

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

Eli Collins updated HDFS-669:
-----------------------------

    Description: 
Most HDFS tests are functional tests that test a feature end to end by running a mini cluster.
We should add more tests like TestReplication that attempt to stress individual classes in
isolation, ie by stubbing out dependencies without running a mini cluster. This allows for
more fine-grain testing and making tests run much more quickly because they avoid the cost
of cluster setup and teardown. If it makes sense to use another framework besides junit we
should standardize with MAPREDUCE-1050. 


  was:Like MAPREDUCE-1050 but for HDFS. If using framework makes sense we should standardize
across Hadoop projects. Using mock objects will allow for fine grain unit tests (ie write
tests for particular class without creating a MiniDFSCluster by creating mock objects for
some/all of the classes dependencies). I'll work on an example patch for preliminary review.

        Summary: Add unit tests   (was: Use mock objects for unit tests  )

> Add unit tests 
> ---------------
>
>                 Key: HDFS-669
>                 URL: https://issues.apache.org/jira/browse/HDFS-669
>             Project: Hadoop HDFS
>          Issue Type: Test
>          Components: test
>            Reporter: Eli Collins
>            Assignee: Eli Collins
>
> Most HDFS tests are functional tests that test a feature end to end by running a mini
cluster. We should add more tests like TestReplication that attempt to stress individual classes
in isolation, ie by stubbing out dependencies without running a mini cluster. This allows
for more fine-grain testing and making tests run much more quickly because they avoid the
cost of cluster setup and teardown. If it makes sense to use another framework besides junit
we should standardize with MAPREDUCE-1050. 

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


Mime
View raw message