Skip to content

Commit

Permalink
feat: Update readme with support mixing pact and non-pact test method…
Browse files Browse the repository at this point in the history
…s with @PactIgnore annotation #1674
  • Loading branch information
rholshausen committed Mar 6, 2023
1 parent 3bb4a08 commit 8ab6b7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions consumer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -653,9 +653,3 @@ and [#1383](https://github.com/pact-foundation/pact-jvm/issues/1383).
One option (if the HTTP client supports it, Apache HTTP Client does) is to set the system property `http.keepAlive` to `false` in
the test JVM. The other option is to set `pact.mockserver.addCloseHeader` to `true` to force the mock server to
send a `Connection: close` header with every response (supported with Pact-JVM 4.2.7+).

# Mixing Pact and non-Pact test methods in the same test class

By default, the Pact lifecycle will be invoked for every test method and will expect there to be a method annotated
with `@Pact` for each test method invoked. To add non-Pact tests, just annotate the non-Pact test method with the
`@PactIgnore` annotation.
6 changes: 6 additions & 0 deletions consumer/junit5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,3 +356,9 @@ class CsvClientTest {
We are tracking anonymous analytics to gather important usage statistics like JVM version
and operating system. To disable tracking, set the 'pact_do_not_track' system property or environment
variable to 'true'.

# Mixing Pact and non-Pact test methods in the same test class

By default, the Pact lifecycle will be invoked for every test method and will expect there to be a method annotated
with `@Pact` for each test method invoked. To add non-Pact tests, just annotate the non-Pact test method with the
`@PactIgnore` annotation.

0 comments on commit 8ab6b7a

Please sign in to comment.