how to obtain information on wether a test result is from a standard test or a testtemplate, repeatedtest, parametrizedtest #3726
-
|
I want to process the test results and I was using a TestExecutionListener (javadoc) for that purpose. @Override
public void executionFinished(TestIdentifier testIdentifier, TestExecutionResult testExecutionResult) {Any ideas on how to obtain that information? Or it's not possible using the TestExecutionListener mechanism? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
|
Beta Was this translation helpful? Give feedback.
TestExectionListeneris a Platform API and therefore not aware of Jupiter specifics. You could inspect the unique ID of theTestIdentifierbut I would not recommend that. Implementing Jupiter-specific extension API likeInvocationInterceptororAfterTestExectionCallbackwould give you access toExtensionContext.getElement()which you could check for annotations usingAnnotationSupport.