What steps will reproduce the problem?
1. create a parameter test method that will be skipped by failed assume
2. provide n parameters
What is the expected output? What do you see instead?
Expected:n skipped tests should be reported
actual: n (with parameter)tests reported with success and one with three skipped
What version of the product are you using? On what operating system?
1.0.2, windows7
Please provide any additional information below.
import static junitparams.JUnitParamsRunner.*;
import static org.junit.Assume.assumeTrue;
import org.junit.*;
import org.junit.runner.*;
import junitparams.*;
@RunWith(JUnitParamsRunner.class)
public class AsumeTest {
@Before
public void init() {
}
public Object getBrowsers() {
Object[] res = new Object[3];
res[0] = $("1");
res[1] = $("2");
res[2] = $("3");
return res;
}
@Parameters(method = "getBrowsers")
@Test
public void testLogin(String param) {
assumeTrue(false);
}
}
result without skipped tests
<testcase classname="testcases.AsumeTest" name="[0] 1 (testLogin)" time="0.002"
/>
<testcase classname="testcases.AsumeTest" name="[1] 2 (testLogin)" time="0.0" />
<testcase classname="testcases.AsumeTest" name="[2] 3 (testLogin)" time="0.0" />
actual result with skipped tests
<testcase classname="junit.framework.TestSuite" name="testLogin" time="0.004">
<skipped message="got: <false>, expected: is <true>" />
<skipped message="got: <false>, expected: is <true>" />
<skipped message="got: <false>, expected: is <true>" />
</testcase>
<testcase classname="testcases.AsumeTest" name="[0] 1 (testLogin)" time="0.006" />
<testcase classname="testcases.AsumeTest" name="[1] 2 (testLogin)" time="0.001" />
<testcase classname="testcases.AsumeTest" name="[2] 3 (testLogin)" time="0.002" />
using ant 1.9.4 with junit4.11
Original issue reported on code.google.com by sorin.r...@gmail.com on 20 Jun 2014 at 2:41
Original issue reported on code.google.com by
sorin.r...@gmail.com
on 20 Jun 2014 at 2:41