hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brock Noland <br...@cloudera.com>
Subject Re: debugging into unit tests with the new mvn build setup
Date Thu, 14 Nov 2013 22:22:41 GMT
Perfect, that is a true unit test.  With the class open and the method you
want to test highlighted you should be able to go to run -> debug.  I set a
breakpoint the class and verified this work for me. See this, here is an
image of it working just a few seconds ago:  http://i.imgur.com/eYi6ud6.png


On Thu, Nov 14, 2013 at 4:15 PM, Eric Hanson (SQL SERVER) <
Eric.N.Hanson@microsoft.com> wrote:

> Hi Brock,
>
> I wanted to attach the debugger in eclipse to execution of a junit test in
> org.apache.hadoop.hive.ql.exec.vector.TestVectorizationContext.
>
> Eric
>
> -----Original Message-----
> From: Brock Noland [mailto:brock@cloudera.com]
> Sent: Wednesday, November 13, 2013 7:02 PM
> To: dev@hive.apache.org
> Cc: hive-dev@hadoop.apache.org
> Subject: Re: debugging into unit tests with the new mvn build setup
>
> Hi,
>
> Specifically which test are you referring to?
>
> A true unit test is debuggable via the debug menu without any additional
> work (e.g. the new UDF tests or TestMacroSemanticAnalyzer).  The so called
> "unit" tests that submit MR jobs might be a little more work, but are you
> looking to debug the parent process or the child process?
>
> Brock
>
>
> On Wed, Nov 13, 2013 at 6:58 PM, Eric Hanson (SQL SERVER) <
> Eric.N.Hanson@microsoft.com> wrote:
>
> > Hi,
> >
> > How do you attach the debugger in eclipse to debug into a single unit
> > test now, with the new mvn build setup? If somebody could add
> > instructions for this into the Hive Developer FAQ<
> > https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ>,
> > that would be great.
> >
> > Thanks,
> > Eric
> >
>
>
>
> --
> Apache MRUnit - Unit testing MapReduce - http://mrunit.apache.org
>



-- 
Apache MRUnit - Unit testing MapReduce - http://mrunit.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message