Skip to content

Commit

Permalink
fix: Don't publish incomplete verification results pact-foundation#1166
Browse files Browse the repository at this point in the history
  • Loading branch information
tinexw committed Jul 9, 2020
1 parent 5ce9447 commit a069194
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package au.com.dius.pact.provider.junit5

import au.com.dius.pact.core.model.BrokerUrlSource
import au.com.dius.pact.core.model.Interaction
import au.com.dius.pact.core.model.Pact
import au.com.dius.pact.core.model.ProviderState
import au.com.dius.pact.core.model.RequestResponseInteraction
import au.com.dius.pact.core.model.*
import au.com.dius.pact.core.support.expressions.SystemPropertyResolver
import au.com.dius.pact.core.support.expressions.ValueResolver
import au.com.dius.pact.core.support.handleWith
Expand Down Expand Up @@ -295,7 +291,11 @@ class PactVerificationExtension(
override fun afterTestExecution(context: ExtensionContext) {
val store = context.getStore(ExtensionContext.Namespace.create("pact-jvm"))
val testContext = store.get("interactionContext") as PactVerificationContext
testResultAccumulator.updateTestResult(pact, interaction, testContext.testExecutionResult, pactSource)
if (pact is FilteredPact) {
testResultAccumulator.updateTestResult(pact.pact, interaction, testContext.testExecutionResult, pactSource)
} else {
testResultAccumulator.updateTestResult(pact, interaction, testContext.testExecutionResult, pactSource)
}
}

companion object : KLogging()
Expand Down

0 comments on commit a069194

Please sign in to comment.