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 9790B200D0B for ; Wed, 27 Sep 2017 21:47:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9607E1609CA; Wed, 27 Sep 2017 19:47:13 +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 DC4801609C1 for ; Wed, 27 Sep 2017 21:47:12 +0200 (CEST) Received: (qmail 87088 invoked by uid 500); 27 Sep 2017 19:47:11 -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 87077 invoked by uid 99); 27 Sep 2017 19:47:11 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Sep 2017 19:47:11 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7D6B9F5BA5; Wed, 27 Sep 2017 19:47:11 +0000 (UTC) From: mfenes To: dev@zookeeper.apache.org Reply-To: dev@zookeeper.apache.org References: In-Reply-To: Subject: [GitHub] zookeeper pull request #375: ZOOKEEPER-1363: Categorise unit tests by 'test-... Content-Type: text/plain Message-Id: <20170927194711.7D6B9F5BA5@git1-us-west.apache.org> Date: Wed, 27 Sep 2017 19:47:11 +0000 (UTC) archived-at: Wed, 27 Sep 2017 19:47:13 -0000 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 Added new capability of defining test categories in test category configuration files. Test category configuration files can contain list of test file names and/or patterns. It is also possible to exclude tests from a test 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 ‘ant test’ should be run (options are the same and they behave the same way). Func and Perf categories are added to keep the previous FuncTest and PerfTest 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 ‘ant test -Dtest.quick=yes’ runs tests minus tests in the Slow category. Command ‘ant test -Dtest.category=’ runs tests from the specified category. It is possible to combine these two options to run a test category minus the Slow tests. 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 having the same name as the category (e.g. category/Commit.exclude). Added README.txt which describes how to run unit tests in detail. 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 hardcoded exclusion of “**/*HammerTest.java” in build.xml. - new test categorization can also exclude test file names/patterns from 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 ---- commit cd51fe57cd839f49bf7babdae4ebded3c92f4b26 Author: Mark Fenes Date: 2017-09-08T15:00:29Z ZOOKEEPER-1363: Categorise unit tests by 'test-commit', 'full-test' etc ---- ---