Skip to content

Commit

Permalink
Log method, class, and engine descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
dmikurube committed Dec 4, 2024
1 parent ac76725 commit 7b8c468
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,21 @@ public TestDescriptor discover(final EngineDiscoveryRequest discoveryRequest, fi

for (final Method method : testClass.getDeclaredMethods()) {
if (method.isAnnotationPresent(EmbulkPluginTest.class)) {
logger.info(() -> "Test method <" + method + "> is found.");
final MethodTestDescriptor methodDescriptor =
new MethodTestDescriptor(uniqueId.append("method", method.getName()), testClass, method);
classDescriptor.addChild(methodDescriptor);
logger.info(() -> "Test method <" + methodDescriptor + "> is registered.");
}
}

if (!classDescriptor.getChildren().isEmpty()) {
engineDescriptor.addChild(classDescriptor);
logger.info(() -> "Test class <" + classDescriptor + "> is registered.");
}
});

logger.info(() -> "Test engine <" + engineDescriptor + "> is registered.");
return engineDescriptor;
}

Expand Down

0 comments on commit 7b8c468

Please sign in to comment.