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 41499200D24 for ; Tue, 24 Oct 2017 16:44:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3FD39160BDB; Tue, 24 Oct 2017 14:44:07 +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 85804160BF1 for ; Tue, 24 Oct 2017 16:44:06 +0200 (CEST) Received: (qmail 27051 invoked by uid 500); 24 Oct 2017 14:44:05 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 27003 invoked by uid 99); 24 Oct 2017 14:44:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Oct 2017 14:44:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 79EC01A14BD for ; Tue, 24 Oct 2017 14:44:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id kLj-k6soSSQY for ; Tue, 24 Oct 2017 14:44:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 9ABF360D1C for ; Tue, 24 Oct 2017 14:44:02 +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 5CC67E0F3B for ; Tue, 24 Oct 2017 14:44:01 +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 770FF212FC for ; Tue, 24 Oct 2017 14:44:00 +0000 (UTC) Date: Tue, 24 Oct 2017 14:44:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ZOOKEEPER-1363) Categorise unit tests by 'test-commit', 'full-test' etc MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 24 Oct 2017 14:44:07 -0000 [ https://issues.apache.org/jira/browse/ZOOKEEPER-1363?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 16217023#comment-16217023 ]=20 ASF GitHub Bot commented on ZOOKEEPER-1363: ------------------------------------------- GitHub user mfenes reopened a pull request: https://github.com/apache/zookeeper/pull/375 ZOOKEEPER-1363: Categorise unit tests by 'test-commit', 'full-test' etc ZOOKEEPER-1363: Categorise unit tests by 'test-commit', 'full-test' etc =20 Added new capability of defining test categories in test category confi= guration files. Test category configuration files can contain list of test = file names and/or patterns. It is also possible to exclude tests from a tes= t category. Test categories are added to ${test.src.dir}/category directory= . Current test categories are defined so that they remained API compatible = with the previous build.xml in regards to how =E2=80=98ant test=E2=80=99 sh= ould be run (options are the same and they behave the same way).=20 Func and Perf categories are added to keep the previous FuncTest and Pe= rfTest categories which were coded into the test file names. Slow test category is added and contains tests which require more than = 30 seconds to complete on a local developer machine. Command =E2=80=98ant test -Dtest.quick=3Dyes=E2=80=99 runs tests minus = tests in the Slow category. Command =E2=80=98ant test -Dtest.category=3D=E2=80=99 ru= ns tests from the specified category. It is possible to combine these two options to run a test category minu= s the Slow tests. =20 Test category file name must match the name of the test category (e.g. = category/Commit). List of excluded tests/patterns should be added to a .exclude file havi= ng the same name as the category (e.g. category/Commit.exclude). =20 Added README.txt which describes how to run unit tests in detail. =20 Benefits: - test categories do not need to be included in the test file names (a= test can be part of more than just one category). - Slow test category is more flexible to exclude slow tests than the h= ardcoded exclusion of =E2=80=9C**/*HammerTest.java=E2=80=9D in build.xml. - new test categorization can also exclude test file names/patterns fr= om a category. - test category can be added for a patch. You can merge this pull request into a Git repository by running: $ git pull https://github.com/mfenes/zookeeper ZOOKEEPER-1363 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/zookeeper/pull/375.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #375 =20 ---- commit cd51fe57cd839f49bf7babdae4ebded3c92f4b26 Author: Mark Fenes Date: 2017-09-08T15:00:29Z ZOOKEEPER-1363: Categorise unit tests by 'test-commit', 'full-test' etc commit 30414528e8550fa4835beb7f8d901f8cad773d6e Author: Mark Fenes Date: 2017-10-24T14:37:29Z Trigger notification =20 Change-Id: I38ad5771552ff2bad16271dfb05fa00a683c3228 ---- > Categorise unit tests by 'test-commit', 'full-test' etc > ------------------------------------------------------- > > Key: ZOOKEEPER-1363 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1363 > Project: ZooKeeper > Issue Type: Improvement > Components: build, tests > Reporter: Henry Robinson > Assignee: Mark Fenes > Labels: newbie > > As discussed on the list, it would be good to split the Java test suite i= nto categories so that it's easy to run a small set of unit tests against a= patch, and to leave Jenkins to run the full suite of stress tests etc.=20 -- This message was sent by Atlassian JIRA (v6.4.14#64029)