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

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

Build:
Build:
LAST BUILD BRANCH: renovate/actions-checkout-6.x
DEFAULT BRANCH: master
Ran 10 Mar 2019 10:46AM UTC
Jobs 2
Files 25
Run time 31s
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% (-1.8%) from 86.559%
397

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%)

11.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 397.1 10 Mar 2019 10:47AM UTC 0
84.76
Travis Job 397.1
2 397.2 10 Mar 2019 10:46AM UTC 0
84.76
Travis Job 397.2
Source Files on build 397
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #397
  • 0346784a on github
  • Prev Build on feat/hooks-api
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

© 2025 Coveralls, Inc