[ 
https://issues.apache.org/jira/browse/MRUNIT-126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13425726#comment-13425726
 ] 

Jim Donofrio commented on MRUNIT-126:
-------------------------------------

There hasnt been much progress on MRUNIT-69. I think we should continue to add 
features to the old API and once we are happy with that we can design a cleaner 
API vs trying to squeeze these features in later. I am interested to hear 
others thoguhts but I think we should get to a point where we can accept just a 
jobconf or job and read all the configuration values out of there as hadoop 
does instead of having specific methods to add mapper classes or comparators, 
etc. We should not allow users to create the mapper or comparator, they should 
simply tell us the class and we will create them as hadoop does. If we just 
accept a jobconf or job we can easily support users passing in a tool class so 
that we can fully test driver code. We will still need the typical methods to 
add inputs, outputs, counters
                
> Counter tests are ignored if test is executed using run() rather than 
> runTest()
> -------------------------------------------------------------------------------
>
>                 Key: MRUNIT-126
>                 URL: https://issues.apache.org/jira/browse/MRUNIT-126
>             Project: MRUnit
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Dave Beech
>
> An alternative way of running an mrunit test is to call run(), which returns 
> the output list to you for manual validation, rather than runTest() which 
> validates everything automatically. 
> If you run a test using the run() method, any counter tests you have 
> specified via withCounter(..) etc are silently ignored, which may falsely 
> give the impression that these tests have passed. 
> At the very least we should give a warning that this is happening. Otherwise, 
> we should make sure the counter validation is triggered in all cases. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to