Return-Path: Delivered-To: apmail-maven-surefire-commits-archive@www.apache.org Received: (qmail 7997 invoked from network); 28 Dec 2010 21:10:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Dec 2010 21:10:59 -0000 Received: (qmail 19550 invoked by uid 500); 28 Dec 2010 21:10:59 -0000 Delivered-To: apmail-maven-surefire-commits-archive@maven.apache.org Received: (qmail 19515 invoked by uid 500); 28 Dec 2010 21:10:58 -0000 Mailing-List: contact surefire-commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: surefire-dev@maven.apache.org Delivered-To: mailing list surefire-commits@maven.apache.org Received: (qmail 19508 invoked by uid 99); 28 Dec 2010 21:10:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Dec 2010 21:10:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Dec 2010 21:10:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 2FD7723889E1; Tue, 28 Dec 2010 21:10:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1053437 - /maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm Date: Tue, 28 Dec 2010 21:10:38 -0000 To: surefire-commits@maven.apache.org From: krosenvold@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101228211038.2FD7723889E1@eris.apache.org> Author: krosenvold Date: Tue Dec 28 21:10:37 2010 New Revision: 1053437 URL: http://svn.apache.org/viewvc?rev=1053437&view=rev Log: [SUREFIRE-678] Documentation upgrade Submitted by Anders Hammar, patch applied unmodified Modified: maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm Modified: maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm?rev=1053437&r1=1053436&r2=1053437&view=diff ============================================================================== --- maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm (original) +++ maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/junit.apt.vm Tue Dec 28 21:10:37 2010 @@ -32,16 +32,16 @@ Using JUnit Surefire supports three different generations of JUnit: JUnit 3.8.x, JUnit 4.x (serial provider) and JUnit 4.7 (junit-core provider with parallel support). The provider is selected based on the JUnit version in your project and the configuration parameters (for parallel). -* Upgrade check for JUnit 4.x +* Upgrade check for JUnit 4.x - As of version 2.7, the algorithm for choosing which tests to change - has run. Form 2.7 and on only run valid JUnit tests for all versions of JUnit, where older versions - would run invalid tests that satisfied a naming convention. - - When upgrading from a version < 2.7 to a newer version, the build can be run with - the flag -Dsurefire.junit4.upgradecheck which will notify you of any tests that - will not be run any more (and the build fails). This is only meant to be used as a tool - when upgrading to check that all your tests will be run. It is a transitional + As of Surefire version 2.7, the algorithm for choosing which tests to run + has changed. From 2.7 and on, only valid JUnit tests are run for all versions of JUnit, where older versions + of the plugin would also run invalid tests that satisfied the naming convention. + + When upgrading from a Surefire version prior to 2.7, the build can be run with + the flag -Dsurefire.junit4.upgradecheck. This will perform a check and notify you of any invalid tests that + will not be run with this version of Surefire (and the build fails). This is only meant to be used as a tool + when upgrading to check that all expected tests will be run. It is a transitional feature that will be removed in a future version of surefire. * How is the provider chosen ?