pact-foundation / pact.io

Pact Foundation Website
http://pact.io
Other
219 stars 92 forks source link

Add ability to customize contract filename #55

Closed ryandt closed 6 years ago

ryandt commented 6 years ago

The contract JSON file that's generated from the consumer pact test is named in the following format by default: "{consumer_name}-{provider_name}". It would be great to have the ability to customize the name of this file. For example, I'd like to follow the following format for the project I'm working on: "{version}-{platform}-{method}" or some other format that isn't necessarily tied to the name that I specify for the consumer and provider in the contract test.

mefellows commented 6 years ago

Can we ask why? Presumably you ate managing the contracts manually and bot using the pact broker?

Which language are you using? This is probably best raised on the specific language repo you're using

ryandt commented 6 years ago

Hey @mefellows. We found our own, automated way around this. Cheers.