hi all: I would like to create a jenkins job to run both hive ut and integration test. Right now it seems that I have to execute mulitple maven goals in different poms:
mvn clean install surefire-report:report -Daggregate=true -Phadoop-2 > cd itests > mvn clean install surefire-report:report -Daggregate=true -Phadoop-2 I would like to use one maven jenkins job and right now I cant figure out how to configure job propery to execute maven goals in different poms (maybe I can add post-build step to execute another shell?). Each hive ptest2 job can run all tests and I would like to know the configure it use. Any help is appreciated. Thanks. 2014-01-14 14:05 GMT+08:00 Shanyu Zhao <shz...@microsoft.com>: > Thanks guys for your help! > > I found Eugene's comments are particularly helpful. With > "-Daggregate=true" I now can see an aggregated unit test results. > > Btw, I didn't mean to run itests, I just want to run all "unit tests". I > think in the FAQ they made it clear that itests are disconnected from the > top level pom.xml. > > Shanyu > > -----Original Message----- > From: Eugene Koifman [mailto:ekoif...@hortonworks.com] > Sent: Monday, January 13, 2014 4:06 PM > To: dev@hive.apache.org > Subject: Re: hive unit test report question > > I think you want to add > -Daggregate=true > you should then have target/site/surefire-report.html in the module where > you ran the command > > > > On Mon, Jan 13, 2014 at 2:54 PM, Szehon Ho <sze...@cloudera.com> wrote: > > > Hi Shanyu, > > > > Are you running in /itests? The unit tests are in there, and are not > > run if you are running from the root. > > > > Thanks > > Szehon > > > > > > On Mon, Jan 13, 2014 at 1:59 PM, Shanyu Zhao <shz...@microsoft.com> > wrote: > > > > > Hi, > > > > > > I was trying to build hive trunk, run all unit tests and generate > > reports, > > > but I'm not sure what's the correct command line. I was using: > > > mvn clean install -Phadoop-2 -DskipTests mvn test > > > surefire-report:report -Phadoop-2 But the reports in the root folder > > > and several other projects (such as > > > metastore) are empty with no test results. And I couldn't find a > > > summary page for all unit tests. > > > > > > I was trying to avoid "mvn site" because it seems to take forever to > > > finish. Am I using the correct commands? How can I get a report like > > > the one in the precommit report: > > > > > http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/827/testRep > > ort/ > > > ? > > > > > > I really appreciate your help! > > > > > > Shanyu > > > > > > > -- > CONFIDENTIALITY NOTICE > NOTICE: This message is intended for the use of the individual or entity > to which it is addressed and may contain information that is confidential, > privileged and exempt from disclosure under applicable law. If the reader > of this message is not the intended recipient, you are hereby notified that > any printing, copying, dissemination, distribution, disclosure or > forwarding of this communication is strictly prohibited. If you have > received this communication in error, please contact the sender immediately > and delete it from your system. Thank You. >