Skip to content

Commit e575617

Browse files
LarsEckartisidore
andcommitted
B!! handle proper help message for inproper use of DynamicTests
Co-Authored-By: Llewellyn Falco <[email protected]>
1 parent 0fea743 commit e575617

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ target
2020
.vscode/
2121
build/venv*/
2222
__pycache__/
23-
approvaltests-tests/.jqwik-database
23+
**/.jqwik-database

approvaltests/src/main/java/org/approvaltests/namer/AttributeStackSelector.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@ private boolean isTestCase(StackTraceElement element)
7676
{ return false; }
7777
if (isJunit3Test(clazz))
7878
{ return true; }
79+
if (isTestAttribute(clazz, TestUtils.unrollLambda(element.getMethodName())))
80+
{ return true; }
7981
if (isTestableMethod(element))
8082
{ return true; }
81-
return isTestAttribute(clazz, TestUtils.unrollLambda(element.getMethodName()));
83+
return false;
8284
}
8385
public static Boolean isJunit5Present = null;
8486
public static boolean isTestableMethod(StackTraceElement element)

0 commit comments

Comments
 (0)