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 5F9B418765 for ; Wed, 10 Feb 2016 17:06:28 +0000 (UTC) Received: (qmail 18179 invoked by uid 500); 10 Feb 2016 17:06:18 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 18126 invoked by uid 500); 10 Feb 2016 17:06:18 -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 18029 invoked by uid 99); 10 Feb 2016 17:06:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Feb 2016 17:06:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 4C2FA2C1F6E for ; Wed, 10 Feb 2016 17:06:18 +0000 (UTC) Date: Wed, 10 Feb 2016 17:06:18 +0000 (UTC) From: "Dmitry Baev (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SUREFIRE-1225) Can't run a single parameterized test 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-1225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15141193#comment-15141193 ] Dmitry Baev commented on SUREFIRE-1225: --------------------------------------- Yep, but as I say above I don't know is it a JUnit test, is it a parameterized one etc. And using {{ParametersRunnerFactory}} you can override the name of test in description as well (in general, all custom runners can change the test description) BTW maybe we should add the ability to get the list of test cases from Surefire plugin? Like a separate goal that prints a json with all the test it going to run? In such case I will use the Surefire plugin to get the list of tests (and it helps to solve the problem with custom runners that can change the test description for me). > Can't run a single parameterized test > ------------------------------------- > > Key: SUREFIRE-1225 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1225 > Project: Maven Surefire > Issue Type: Bug > Affects Versions: 2.19.1 > Reporter: Dmitry Baev > > The sample test to reproduce the problem: > {code:java|title=com/github/baev/MyTest.java} > @RunWith(Parameterized.class) > public class MyTest { > @Parameterized.Parameters > public static Collection data() { > return Arrays.asList( > new Object[]{}, > new Object[]{} > ); > } > @Test > public void testWithParameters() throws Exception { > } > } > {code} > and then run > {{clean test -Dtest=com.github.baev.MyTest#testWithParameters}} > The output is > {{Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project surefire-base-test-bug: No tests were executed!}} > Is it expected? -- This message was sent by Atlassian JIRA (v6.3.4#6332)