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 CB4A7200BE2 for ; Thu, 15 Dec 2016 20:11:45 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C9D1A160B15; Thu, 15 Dec 2016 19:11:45 +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 1F530160B13 for ; Thu, 15 Dec 2016 20:11:44 +0100 (CET) Received: (qmail 82062 invoked by uid 500); 15 Dec 2016 19:11:44 -0000 Mailing-List: contact dev-help@streams.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@streams.incubator.apache.org Delivered-To: mailing list dev@streams.incubator.apache.org Received: (qmail 82050 invoked by uid 99); 15 Dec 2016 19:11:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Dec 2016 19:11:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 51BD6C0258 for ; Thu, 15 Dec 2016 19:11:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.981 X-Spam-Level: * X-Spam-Status: No, score=1.981 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id RKd7Co_W5W1A for ; Thu, 15 Dec 2016 19:11:41 +0000 (UTC) Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id F35DA5F3BC for ; Thu, 15 Dec 2016 19:11:40 +0000 (UTC) Received: by mail-oi0-f53.google.com with SMTP id y198so57074506oia.1 for ; Thu, 15 Dec 2016 11:11:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :subject:mime-version; bh=vp8ZuXXRQRpi5aHLHfjA3cMG9h+N1aqbFZoiCAYpaWs=; b=SVdQgjMi+WVdHy4+KkxWWj6k8y8/uj5/unM7GSfJxlxmO+YXbUuKRvgPGE3NnYc1JY AkRH5LMGHtDfGhow+3AYSJE3h8esX3ot9dFm7WLVUPxzxmCuUHGl/BqDq/d5ki2g6WBi uz0eMajdvPyBg18zKnx2j/y3CCav6LZ6I9WiVQTY/UbIsB8OIPuhj7U57vv88Z8dbOEw uLmGln9dpv0YT5uHVIVqs0zXNIlAgaMF0zisxIELfttEibtnKCYoCheVDwgiaH/ISFYA rrXaAsYLSelCfEU31xCvTSUupBntu/Dcu7iJ2Akov2IqwLvOtCUuZQcS9yyMDW17U08l sGng== X-Gm-Message-State: AIkVDXK0rxL8xqArgwiKCDgrgMM7qlXC0mqTnY+pTBeuXnvg+uZDxaf2OzFLYp6xPt7SKw== X-Received: by 10.202.205.86 with SMTP id d83mr1640608oig.160.1481829099469; Thu, 15 Dec 2016 11:11:39 -0800 (PST) Received: from Steves-MacBook-Pro-3.local.mail (adsl-68-253-132-72.dsl.emhril.ameritech.net. [68.253.132.72]) by smtp.gmail.com with ESMTPSA id 31sm1048745oth.21.2016.12.15.11.11.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Dec 2016 11:11:38 -0800 (PST) Date: Thu, 15 Dec 2016 13:11:37 -0600 From: sblackmon To: dev@streams.incubator.apache.org Message-ID: In-Reply-To: References: Subject: Re: [DISCUSS] Switch from JUnit to TestNG for failsafe integration testing. X-Mailer: Airmail (397) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5852eae9_522a6f56_94bb" archived-at: Thu, 15 Dec 2016 19:11:46 -0000 --5852eae9_522a6f56_94bb Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is just about wrapped up - the last PR to merge is https://github.com/apache/incubator-streams-examples/pull/23 Also relevant to release prep is https://github.com/apache/incubator-streams/pull/342 With those merged all unit and integration tests should be passing. I=E2=80=99d like to merge these by tomorrow to prepare us to start the ne= xt release this weekend. Steve On November 26, 2016 at 1:21:57 PM, Suneel Marthi (smarthi=40apache.org) = wrote: +1 to this proposal, we should standardize on one test framework across t= he =20 project from what's presently out there. =20 On Sat, Nov 26, 2016 at 11:17 AM, sblackmon wrot= e: =20 > =20 > Hello, =20 > =20 > I propose that we bind failsafe plugin to TestNG rather than JUnit =20 > project-wide. =20 > =20 > The reason is simple - TestNG supports placing tests into groups and =20 > declaring dependencies that determine which order all tests in the modu= le =20 > run in - and JUnit does not. =20 > =20 > Consider the following scenario - a provider module test plan includes = the =20 > following: =20 > a) collect documents =20 > b) validate the collected documents against their upstream schema(s) =20 > c) convert the collected documents to activity and activity object =20 > schema(s) =20 > d) validate the converted documents, using an appropriate validator for= =20 > each verb and object type =20 > =20 > If we have the ability to specify the order of test execution, that tes= t =20 > plan might be 2, 3, 4, or more separate test classes. =20 > =20 > If not, all of that mostly orthogonal testing has to be corralled into = a =20 > single test class just to ensure proper order of execution. =20 > =20 > All of our provider and persist module can have more complex yet more =20 > simply organized tests using this model. =20 > =20 > As for surefire plugin for unit testing, I=E2=80=99m ambivalent - I wou= ld think we =20 > can leave it on JUnit unless there=E2=80=99s a clear benefit to switchi= ng it also. =20 > =20 > Making the switch should be easy - =20 > 1) remove org.junit imports in every class ending with IT =20 > 2) import the corresponding org.testng.annotations instead. =20 > 3) swap the failsafe binding in the streams-master pom =20 > 4) confirm the same number of tests run during integration-test and all= =20 > still pass. =20 > =20 > Any objections or related ideas to consider=3F =20 > =20 > Steve =20 > =20 > =20 > =20 > =20 > =20 --5852eae9_522a6f56_94bb--