Eric-

Can you explain how Powermock differs from/augments Mockito, why we
should adopt it, and maybe an example of an existing test that could
be improved using this library? -C

On Fri, Sep 29, 2017 at 10:12 AM, Eric Yang <ey...@hortonworks.com> wrote:
> Hi Hadoop-dev,
>
> Long time ago, Hadoop community decided to put Powermock on hold for unit 
> tests.  Both mockito and powermock has evolved a lot in the past 5 years.  
> There are mature versions of both software, and there are compatibility 
> charts to indicate which versions can work together.  Hadoop has grown a lot 
> in the last 5 years.  It becomes apparent that without ability to instrument 
> lower level classes to contain unit test scope.  Many tests are written to 
> simulate integration test in order to perform unit tests.  The result is slow 
> performance on unit tests, and some parts are not testable strictly in unit 
> test case.  This discussion is to revisit the decision, and see if we would 
> embrace Powermock and allow HADOOP-9122 to be implemented.  Feel free to 
> comment on HADOOP-9122 and this thread to revisit this issue.
>
> Thank you for your time.
>
> Regards,
> Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-dev-h...@hadoop.apache.org

Reply via email to