You can run all the unit test with the command ant test, or you can run a specific unit test with the command ant -Dtestcase=<class name without package prefix> test (for example ant -Dtestcase=TestFileSystem test).
Refer : https://cwiki.apache.org/confluence/display/Hive/HowToContribute Devaraj K _____ From: Fang Fang FF Chen [mailto:ffche...@cn.ibm.com] Sent: Tuesday, August 02, 2011 10:43 AM To: user@hive.apache.org Subject: Is there a way to run a test about some class? Every time I run tests with "ant tests", it will lasted for a long time. Now I just want to run some test(i.e Test org.apache.hadoop.hive.cli.TestCliDriver). Is there a command or a way which is available for my idea? Thank you. Thanks. Regards, FangFang CHEN / 陈芳芳 ---------------------------------- BigInsights Team, CDL Phone: 86-10-82453744 ----------------------------------