Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CA167172D5 for ; Tue, 21 Oct 2014 11:52:58 +0000 (UTC) Received: (qmail 73258 invoked by uid 500); 21 Oct 2014 11:52:58 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 73155 invoked by uid 500); 21 Oct 2014 11:52:58 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 73144 invoked by uid 99); 21 Oct 2014 11:52:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2014 11:52:57 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of clamb@cloudera.com designates 209.85.220.52 as permitted sender) Received: from [209.85.220.52] (HELO mail-pa0-f52.google.com) (209.85.220.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2014 11:52:30 +0000 Received: by mail-pa0-f52.google.com with SMTP id fb1so1260834pad.11 for ; Tue, 21 Oct 2014 04:52:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=5Fv8IiDzzAmZheRUBBmm36k25c5LkjSOMXhPIEmRQYU=; b=RSEoBlKncysI5AC0YktecdfHIa1uHijLgxcieGz+06bqnyWrgAPmNFHsQUt0X1+DXT subntLjJbmktjtSbrv98sGAcuD6oQwJ3F+RCjkk4QKceiJ9okF6u8QbPKnoa4TK5lUcy GalOtTqSRyVVhUJUybYDh+bMuOtqyY+oAedH6TovPLfBBEjEt/6KdlfmZyLchaQbiv6j cwR25aNRzeCU/TfYNmqGoSUncU97RgfJowh2IjRIb6jvSyR6w5FG8NASFKshAdWs+KxL x4M3BCTGYZfwI1xZvTOunZoOzpmt1jhLnj5JcYB7gx9zcy8GFmM4fck4cgnFuJBs8w6N 9dvA== X-Gm-Message-State: ALoCoQl8gpaijG5tc/mKR9ck6Wc55yHJoVwDPvpHLeFMC2LmzQHVw4oEDGqJsrp/MAPpfGOuzm4H X-Received: by 10.70.36.202 with SMTP id s10mr34016046pdj.101.1413892348460; Tue, 21 Oct 2014 04:52:28 -0700 (PDT) Received: from [192.168.1.4] (pool-96-237-146-165.bstnma.fios.verizon.net. [96.237.146.165]) by mx.google.com with ESMTPSA id wr8sm11655022pbc.52.2014.10.21.04.52.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Oct 2014 04:52:27 -0700 (PDT) Message-ID: <544648F9.6030906@cloudera.com> Date: Tue, 21 Oct 2014 07:52:25 -0400 From: Charles Lamb User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: hdfs-dev@hadoop.apache.org Subject: Re: How to run hdfs unit tests ? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 10/21/2014 7:33 AM, xiaohe lan wrote: > Hello, > > I am new to hdfs, I want to know how to run a specific unit test of hdfs. I > have imported hdfs project into IntelliJ IDEA, I can run a test just by > right-click on the test and select Run test. Can I run a unit test from > terminal and how ? I want to learn some hdfs APIs so I may add some code to > the unit tests code and some a test. > > Thanks, > Xiaohe > Hi Xiaohe, mvn test -Dtest=TestSomeTest e.g. mvn test -Dtest=TestEncryptionZones Charles