JUnitParams
JUnitParams copied to clipboard
Parameterised tests that don't suck
I often use objects that I instantiate in @Before or @BeforeClass in my tests; the problem is that the method that generates parameters for test is called before @BeforeClass and...
This change makes the following changes: - The list of FrameworkMethod returned from getChildren() is a flat list of subclasses of FrameworkMethod, one per test method. Parameterized methods return a...
I'm trying to use surefire feature -Dsurefire.rerunFailingTestsCount on failing test. If count=1, it's supposed to be run again one time, but it doesn't: > Running Test3 > Tests run: 2,...
I am having trouble executing single test method with only one set of parameters. For example executing following method for only "2,2" example.param#ParTests#test2_2_2. ``` java @RunWith(MyJUnitParamsRunner.class) public class ParTests @Test...
Background: I am working on Android and trying to use JUnitParams with the Android Test Support Library, specifically the [AndroidJUnitRunner](https://developer.android.com/reference/android/support/test/runner/AndroidJUnitRunner.html) class which runs classes on the device. During that work...
This could be a potential performance problem for people using `@FileParameters` Please +1 if anyone finds this problematic. Let us know if this is an important issue for you before...
If you use @FileParameters to pull in .csv data, you can use a varargs method to collect an arbitrary number of remaining items. An inconsistency in the csv varargs handling...
public interface V222 {} @RunWith(WildcardPatternSuite.class) @SuiteClasses({"**/*Test.class"}) @IncludeCategories({V222.class}) public class SuiteRunner2 { } @RunWith(JUnitParamsRunner.class) public class DTest { @Test @Category(V222.class) @Parameters({"1", "2"}) public void test(String s) { System.out.println(s); } // if...
This PR is a follow-on to https://github.com/Pragmatists/JUnitParams/pull/166 that fixes https://github.com/Pragmatists/JUnitParams/issues/172. It consists of 3 commits: - The first commit beefs up the parsing of `BigDecimal` values from strings. The `BigDecimal`...
- PR https://github.com/Pragmatists/JUnitParams/pull/159: latest merged PR, Sep 2018 - b8647f177a2be1f37a252ec11687b0ea606b1a70: latest commit on master, Sep 2018 - 7d92ef2b36d66df3df11e64052927e77e261f942: version 1.1.1, Nov 2017 Is there active maintainers? plus interest into PR/features?