• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pact-foundation / pact-go / 397 / 2
85%
master: 28%

Build:
Build:
LAST BUILD BRANCH: renovate/go-1.x
DEFAULT BRANCH: master
Ran 10 Mar 2019 10:46AM UTC
Files 25
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Mar 2019 10:43AM UTC coverage: 84.757%. Remained the same
397.2

push

travis-ci

mefellows
feat(hooks): support hook functions and request middleware

- Deprecate ProviderStatesSetupURL, in favour of functional hooks
- Add BeforeHook and AfterHook to execute at the start and end
  of an interaction lifecycle
- Add RequestFilter to be able to support more advanced provider
  intercepting (e.g. Authorisation) use cases
- Improved test coverage
- Add proxy infrastructure on provider verification to support
- Remove existing broker fetch/publish code, defer to CLI tools

*Summary of new hooks lifecycle*:
For each _interaction_ in a pact file, the order of execution is as follows:

`BeforeHook` -> `StateHandler` -> `RequestFilter (pre)`, `Execute Provider Test` -> `RequestFilter (post)` -> `AfterHook`

If any of the middleware or hooks fail, the tests will also fail.

BREAKING CHANGE

1379 of 1627 relevant lines covered (84.76%)

5.52 hits per line

Source Files on job 397.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 758
  • Travis Job 397.2
  • 0346784a on github
  • Prev Job for on feat/hooks-api (##745.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc