-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Labels
recipeRecipe requestRecipe request
Description
What problem are you trying to solve?
Find and fix test cases which are forgotten and thus are not executed.
Some heuristics is probably needed to determine if given method is indeed a test case and not some helper method.
This is relevant to JUnit 4+ which uses annotations to determine if something is a test case.
(Possibly other test frameworks use the same approach and the recipe could cover them too).
Describe the situation before applying the recipe
void testAddition() {
int result = calculator.add(2, 3);
Assertions.assertEquals(5, result);
}
Describe the situation after applying the recipe
@Test
void testAddition() {
int result = calculator.add(2, 3);
Assertions.assertEquals(5, result);
}
OSS repro
Metadata
Metadata
Assignees
Labels
recipeRecipe requestRecipe request
Type
Projects
Status
Recipes Wanted