maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Baev (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SUREFIRE-1225) Can't run a single parameterized test
Date Wed, 03 Feb 2016 13:56:39 GMT

     [ https://issues.apache.org/jira/browse/SUREFIRE-1225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dmitry Baev updated SUREFIRE-1225:
----------------------------------
    Description: 
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<Object[]> 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?

  was:
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<Object[]> 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?


> 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<Object[]> 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)

Mime
View raw message