hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chad Metcalf (JIRA)" <j...@apache.org>
Subject [jira] Commented: (MAPREDUCE-1050) Introduce a mock object testing framework
Date Wed, 07 Oct 2009 17:18:31 GMT

    [ https://issues.apache.org/jira/browse/MAPREDUCE-1050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763138#action_12763138
] 

Chad Metcalf commented on MAPREDUCE-1050:
-----------------------------------------

+1 on mockito

Couple of nice comparisons to easymock.

http://blog.jteam.nl/2009/08/13/easier-mocking-with-mockito/
http://code.google.com/p/mockito/wiki/MockitoVSEasyMock

The jmock guys acknowledge that their tool is opinionated and the structure arcane but that
they made those decisions to force test in a certain direction. That is all fine and well
for a company that can devote time and resources to training. I think its less appropriate
on an open source project.

I think mockito would be a good choice in this environment (lots of developers from different
backgrounds, testing training, etc). In the end we want people to use the tool and test. 

> 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
>
>
> 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.


Mime
View raw message