Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4A231200C22 for ; Tue, 7 Feb 2017 02:26:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4894C160B62; Tue, 7 Feb 2017 01:26:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 92A03160B56 for ; Tue, 7 Feb 2017 02:26:46 +0100 (CET) Received: (qmail 58663 invoked by uid 500); 7 Feb 2017 01:26:45 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 58652 invoked by uid 99); 7 Feb 2017 01:26:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2017 01:26:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D8571180371 for ; Tue, 7 Feb 2017 01:26:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id z-BBB1I5B30v for ; Tue, 7 Feb 2017 01:26:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 8435F5F570 for ; Tue, 7 Feb 2017 01:26:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 821A0E05AE for ; Tue, 7 Feb 2017 01:26:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id BFB5025292 for ; Tue, 7 Feb 2017 01:26:41 +0000 (UTC) Date: Tue, 7 Feb 2017 01:26:41 +0000 (UTC) From: "Yi Liang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-17574) Clean up how to run tests under hbase-spark module MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 07 Feb 2017 01:26:47 -0000 [ https://issues.apache.org/jira/browse/HBASE-17574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yi Liang updated HBASE-17574: ----------------------------- Release Note: run test under root dir or hbase-spark dir 1. mvn test //run all small and medium java tests, and all scala tests 2. mvn test -pSkipSparkTests //skip all scale and java test in hbase-spark 3. mvn test -P runAllTests //run all tests, including scala and all java test even the large test /run specified test case, since we have two plugins, we need specify both java and scala //if just want to test one, we need to disable the other one use -Dxx=None 1. mvn test -Dtest=TestJavaHBaseContext -DwildcardSuites=None // java unit test 2. mvn test -Dtest=None -DwildcardSuites=org.apache.hadoop.hbase.spark.BulkLoadSuite //scala unit test, only support full name in scalatest plugin > Clean up how to run tests under hbase-spark module > --------------------------------------------------- > > Key: HBASE-17574 > URL: https://issues.apache.org/jira/browse/HBASE-17574 > Project: HBase > Issue Type: Bug > Components: spark > Affects Versions: 2.0.0 > Reporter: Yi Liang > Assignee: Yi Liang > Fix For: 2.0.0 > > Attachments: HBase-17574-V1.patch > > > In master brunch, the test of hbase-spark module needs clean-up. > I think we need to let hbase-spark follow the rules that exist in the whole hbase project > 1. In hbase-spark, all the scala test cases are regarded as integration test, i.e. we need to go to hbase-spark folder to use mvn verify to run the test case. I think these tests had better to be regard as unit test for the following reasons: > (1) All the scala test are very small, most of them can be finished within 20s. > (2) Integration test usually put into hbase-it module, not in its own module. > (3) Hadoop QA could not run those scala test in hbase-spark, I guess Hadoop QA will only run mvn test under root dir, however hbase-spark need mvn verify. > (4) From its pom.xml below, you can see that, both integration-test and test point to same test. From MVN reference, http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Built-in_Lifecycle_Bindings, we know that if a goal is bound to one or more build phases, that goal will be called in all those phases. it means that mvn test and mvn integration-test will do same thing, however true in test phase just disable the mvn test command. It is uncommon to have define like that. > {code} > > > test > test > > test > > > true > > > > integration-test > integration-test > > test > > > Integration-Test > > -Xmx1536m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=512m > > false > > > > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)