You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Konstantin Boudnik (JIRA)" <ji...@apache.org> on 2009/11/05 22:03:33 UTC
[jira] Updated: (MAPREDUCE-1050) Introduce a mock object testing
framework
[ https://issues.apache.org/jira/browse/MAPREDUCE-1050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konstantin Boudnik updated MAPREDUCE-1050:
------------------------------------------
Attachment: MAPREDUCE-1050.patch
Per conversation w/ Nigel and Tom last night, I've moved test cases from {{src/test/mapred/}} hierarchy to {{src/test/unit/}} for these are true unit tests.
Also, I've created new ant target 'run-test-unit' to execute unit tests only and modified the test running macro to pickup unit tests when a testcase is specified.
Also, one of the tests 'TestLostTaskTracker' is repeatedly failing now. Tom, could you please take a look?
> Introduce a mock object testing framework
> -----------------------------------------
>
> Key: MAPREDUCE-1050
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-1050
> Project: Hadoop Map/Reduce
> Issue Type: Test
> Components: test
> Reporter: Tom White
> Assignee: Tom White
> Attachments: MAPREDUCE-1050.patch, MAPREDUCE-1050.patch, MAPREDUCE-1050.patch, MAPREDUCE-1050.patch
>
>
> Using mock objects in unit tests can improve code quality (see e.g. http://www.mockobjects.com/). Hadoop would benefit from having a mock object framework for developers to write unit tests with. Doing so will allow a wider range of failure conditions to be tested and the tests will run faster.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.