Return-Path: Delivered-To: apmail-hadoop-hbase-dev-archive@minotaur.apache.org Received: (qmail 12228 invoked from network); 14 Oct 2009 20:08:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Oct 2009 20:08:55 -0000 Received: (qmail 64189 invoked by uid 500); 14 Oct 2009 20:08:54 -0000 Delivered-To: apmail-hadoop-hbase-dev-archive@hadoop.apache.org Received: (qmail 64135 invoked by uid 500); 14 Oct 2009 20:08:54 -0000 Mailing-List: contact hbase-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-dev@hadoop.apache.org Received: (qmail 64125 invoked by uid 99); 14 Oct 2009 20:08:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Oct 2009 20:08:54 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Oct 2009 20:08:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6CE09234C045 for ; Wed, 14 Oct 2009 13:08:31 -0700 (PDT) Message-ID: <1008830375.1255550911307.JavaMail.jira@brutus> Date: Wed, 14 Oct 2009 13:08:31 -0700 (PDT) From: "stack (JIRA)" To: hbase-dev@hadoop.apache.org Subject: [jira] Resolved: (HBASE-1276) [testing] Upgrade to JUnit 4.x and use @BeforeClass annotations to optimize tests In-Reply-To: <639654321.1237541091215.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-1276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack resolved HBASE-1276. -------------------------- Resolution: Fixed Assignee: stack I just did some messing around with junit4. We can put junit4 tests into our current test hierarchy and they are run out of ant in betwixt current tests. The BeforeClass and AfterClass is sweet. I'm going to now start working on converting over a bunch of our tests to use this stuff as part of another issue about speeding up unit tests. So, I'll just resolve this now.... > [testing] Upgrade to JUnit 4.x and use @BeforeClass annotations to optimize tests > --------------------------------------------------------------------------------- > > Key: HBASE-1276 > URL: https://issues.apache.org/jira/browse/HBASE-1276 > Project: Hadoop HBase > Issue Type: Bug > Components: test > Reporter: ryan rawson > Assignee: stack > Fix For: 0.21.0 > > > If we upgrade to JUnit 4.x we can get access to @BeforeClass annotations... that allows us to start up DFS & Hbase only once per test class. This should improve the speed of our unit tests substantially. > We will also need an ability to reset the hbase state between tests however. Drop all tables for example. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.