A TestTemplateInvocationContextProvider
must not return an empty stream
#1007
Labels
bug
Indicates an unexpected problem or unintended behavior
The javadoc of
TestTemplateInvocationContextProvider# provideTestTemplateInvocationContexts
says: This method is only called by the framework if#supportsTestTemplate
previously returnedtrue
for the sameExtensionContext
. Thus, this method must not return an emptyStream
.But the junit5
PactVerificationInvocationContextProvider
returns an empty stream if it doesn't find any pacts. This results in the cryptic error message from JUnit 5:org.junit.platform.commons.PreconditionViolationException: No supporting TestTemplateInvocationContextProvider provided an invocation context
Can we throw an exception instead.
The text was updated successfully, but these errors were encountered: