Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7F1DE18345 for ; Fri, 5 Feb 2016 16:23:40 +0000 (UTC) Received: (qmail 76716 invoked by uid 500); 5 Feb 2016 16:23:40 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 76672 invoked by uid 500); 5 Feb 2016 16:23:40 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 76634 invoked by uid 99); 5 Feb 2016 16:23:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2016 16:23:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D7FDF2C0AFA for ; Fri, 5 Feb 2016 16:23:39 +0000 (UTC) Date: Fri, 5 Feb 2016 16:23:39 +0000 (UTC) From: "Jiri Locker (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SUREFIRE-1227) The Description argument RunListener#testRunStarted(Description) doesn't include test methods MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SUREFIRE-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jiri Locker updated SUREFIRE-1227: ---------------------------------- Attachment: maven-surefire-run-listener.zip > The Description argument RunListener#testRunStarted(Description) doesn't include test methods > --------------------------------------------------------------------------------------------- > > Key: SUREFIRE-1227 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1227 > Project: Maven Surefire > Issue Type: Bug > Components: Maven Surefire Plugin > Affects Versions: 2.19.1 > Reporter: Jiri Locker > Attachments: maven-surefire-run-listener.zip > > > In Surefire 2.19 the Description passed to testRunStarted() is a test run description and has 2 levels of children (test classes > test methods). The top level Description's testCount property is equal to the number of test methods in all test classes that are going to be run. When dumping the description tree it may look like this: > {noformat} > Description: ~ null (6) > Description: ~ ~ io.github.yurloc.example.runlistener.MyFirstTest (2) > Description: ~ ~ ~ testMethod1(io.github.yurloc.example.runlistener.MyFirstTest) (1) > Description: ~ ~ ~ testMethod2(io.github.yurloc.example.runlistener.MyFirstTest) (1) > Description: ~ ~ io.github.yurloc.example.runlistener.MySecondTest (4) > Description: ~ ~ ~ testMethodA(io.github.yurloc.example.runlistener.MySecondTest) (1) > Description: ~ ~ ~ testMethodB(io.github.yurloc.example.runlistener.MySecondTest) (1) > Description: ~ ~ ~ testMethodC(io.github.yurloc.example.runlistener.MySecondTest) (1) > Description: ~ ~ ~ testMethodD(io.github.yurloc.example.runlistener.MySecondTest) (1) > {noformat} > However in Surefire 2.19.1 the leaf descriptions of test methods are missing: > {noformat} > Description: ~ null (2) > Description: ~ ~ io.github.yurloc.example.runlistener.MyFirstTest (1) > Description: ~ ~ io.github.yurloc.example.runlistener.MySecondTest (1) > {noformat} > Because of this I am unable to access the total test count, which I use to calculate ETA of the test run finish. I seem that this change of behavior was introduced by fixing SUREFIRE-1187. -- This message was sent by Atlassian JIRA (v6.3.4#6332)