junit4
junit4 copied to clipboard
A programmer-oriented testing framework for Java.
I'd like to suggest to reformat all code under `org.junit.*` once to meet the defined [formatting guidelines](https://github.com/junit-team/junit4/blob/master/CODING_STYLE.txt). At the moment not all the files are formatted accordingly to that standard....
As of version 4.12 there is much encapsulated functionality in `Suite`, `Parameterized` and `BlockJUnit4ClassRunnerWithParameters`, which is hidden in private methods and not available for custom implementations of `Runner` for reuse....
I use JUnit for a while. I also wrote a graphical wrapper for it, because i do not use the usual ide but emacs with jdee. For people like me,...
ErrorReportingRunner does not support Filterable which means it doesn't play well with Filters that are trying to remove known issues. Filters often ignore descriptions that have children so that they...
I was running @Theory examples and found the following code cannot pass compilation. ``` java public static class BetweenSupplier extends ParameterSupplier { @Override public List getValueSources(ParameterSignature sig) { List list...
Example: ``` @DataPoints public static int[] numbers = new int[]{1, 2, 3, 4}; @DataPoints public static String[] strings = new String[]{"a", "b", "c"}; @FromDataPoints public int number; // this will...
https://github.com/junit-team/junit4/blob/master/src/test/java/org/junit/tests/experimental/theories/runner/UnsuccessfulWithDataPointFields.java#L63 ``` @RunWith(Theories.class) public static class DoesntUseParams { @DataPoint public static int ONE = 1; @Theory public void everythingIsZero(int x, int y) { assertThat(2, is(3)); } } @Test public void...
I have been working on Android for a while now and have spent a lot of that time working on various parts of the Android testing infrastructure. As part of...
I think the documentation of this method is misleadinig. What it really does is: If desiredDescription does not describe a single test, no test is executed at all. If desiredDescription...
Please add a timeout attribute to @BeforeClass, @Before, @After, and @AfterClass. This will allow set ups and tear downs to databases and other expensive remote resources to gracefully stop and...