Skip to content

how to obtain information on wether a test result is from a standard test or a testtemplate, repeatedtest, parametrizedtest #3726

Answered by marcphilipp
bitcoder asked this question in Q&A
Discussion options

You must be logged in to vote

TestExectionListener is a Platform API and therefore not aware of Jupiter specifics. You could inspect the unique ID of the TestIdentifier but I would not recommend that. Implementing Jupiter-specific extension API like InvocationInterceptor or AfterTestExectionCallback would give you access to ExtensionContext.getElement() which you could check for annotations using AnnotationSupport.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@bitcoder
Comment options

@marcphilipp
Comment options

@bitcoder
Comment options

Answer selected by bitcoder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants