pact-ruby
pact-ruby copied to clipboard
Reuse provider verification result in a single run
Let's say our contract file has 100 interactions.
When we create a feature branch adding 1 more interactions we have 2 contracts: A. 100 interactions B. 100 interactions from contract A + 1 new interaction
The provider verification picks both contract files (either specifically, either as WIP). Currently, all 201 interactions are checked even 100 of them are verified twice. Could we reuse a single interaction verification results to optimize it, so only 101 interactions are actually performed?
For the background, when we have multiple WIP branches our job execution time jumped from 9 minutes to 50 minutes while most of the work is doing the same thing over and over.