ttt307307 / junitparams

Automatically exported from code.google.com/p/junitparams
0 stars 0 forks source link

should not fail whole class when one method is broken #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Having test

package asd;

import junitparams.JUnitParamsRunner;
import junitparams.Parameters;

import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(JUnitParamsRunner.class)
public class JunitParamsTest {

    @Test
    public void shouldExecuteThisTestAlthoughAntotherOneIsBroken() {

    }

    @Test
    @Parameters(method = "notExisting")
    public void willFail() {
    }

}

It should fail only the second method, while now it fails whole class with 
initializationError.

JUnitParams 0.3.7

Original issue reported on code.google.com by tomasz.b...@pragmatists.pl on 4 Jan 2012 at 3:16

GoogleCodeExporter commented 8 years ago
In this case @Ignore the test. Failing wouldn't be right, since without the 
params we don't know if it's the SUT is really wrong.  
And it'd be very hard to do  ;-)

Original comment by lipinski...@gmail.com on 9 Jan 2012 at 12:14