Skip to content

Commit 8ab6b7a

Browse files
committed
feat: Update readme with support mixing pact and non-pact test methods with @PactIgnore annotation #1674
1 parent 3bb4a08 commit 8ab6b7a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

consumer/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -653,9 +653,3 @@ and [#1383](https://github.com/pact-foundation/pact-jvm/issues/1383).
653653
One option (if the HTTP client supports it, Apache HTTP Client does) is to set the system property `http.keepAlive` to `false` in
654654
the test JVM. The other option is to set `pact.mockserver.addCloseHeader` to `true` to force the mock server to
655655
send a `Connection: close` header with every response (supported with Pact-JVM 4.2.7+).
656-
657-
# Mixing Pact and non-Pact test methods in the same test class
658-
659-
By default, the Pact lifecycle will be invoked for every test method and will expect there to be a method annotated
660-
with `@Pact` for each test method invoked. To add non-Pact tests, just annotate the non-Pact test method with the
661-
`@PactIgnore` annotation.

consumer/junit5/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,3 +356,9 @@ class CsvClientTest {
356356
We are tracking anonymous analytics to gather important usage statistics like JVM version
357357
and operating system. To disable tracking, set the 'pact_do_not_track' system property or environment
358358
variable to 'true'.
359+
360+
# Mixing Pact and non-Pact test methods in the same test class
361+
362+
By default, the Pact lifecycle will be invoked for every test method and will expect there to be a method annotated
363+
with `@Pact` for each test method invoked. To add non-Pact tests, just annotate the non-Pact test method with the
364+
`@PactIgnore` annotation.

0 commit comments

Comments
 (0)