Skip to content

Commit

Permalink
Merge branch 'master' into v4.7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
rholshausen committed Nov 18, 2024
2 parents 5c94820 + 7229244 commit 7ed2ee4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ You want to look at: [groovy](consumer/groovy) or [junit](consumer/junit)
### (Use Clojure I)

Clojure can call out to Java, so have a look at [junit](consumer/junit). For an example
look at [example_clojure_consumer_pact_test.clj](https://github.com/pact-foundation/pact-jvm/blob/master/consumer/junit/src/test/clojure/au/com/pact-foundation/pact/consumer/junit/example_clojure_consumer_pact_test.clj).
look at [example_clojure_consumer_pact_test.clj](https://github.com/pact-foundation/pact-jvm/blob/master/consumer/junit/src/test/clojure/au/com/dius/pact/consumer/junit/example_clojure_consumer_pact_test.clj).

### I Use some other jvm language or test framework

Expand Down
3 changes: 2 additions & 1 deletion provider/junit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,8 @@ JUnit mechanism. Additional reports can be generated from the tests.
## Enabling additional reports via annotations on the test classes

A `@VerificationReports` annotation can be added to any pact test class which will control the verification output. The
annotation takes a list report types and an optional report directory (defaults to "target/pact/reports").
annotation takes a list report types and an optional report directory (defaults to "target/pact/reports" for Maven
builds and "build/pact/reports" with Gradle).
The currently supported report types are `console`, `markdown` and `json`.

For example:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ class HttpTargetSpec extends Specification {
httpTarget.setupReporters(verifier)

then:
1 * verifier.setReporters { r -> r*.class*.simpleName == ['AnsiConsoleReporter', 'MarkdownReporter'] }
1 * verifier.setReporters { r ->
r*.class*.simpleName == ['AnsiConsoleReporter', 'MarkdownReporter']
r*.reportDir == ['build/pacts/reports' as File, 'build/pacts/reports' as File]
}
}

@SuppressWarnings('ClosureStatementOnOpeningLineOfMultipleLineClosure')
Expand Down

0 comments on commit 7ed2ee4

Please sign in to comment.