Hello! I have three questions about the global Pac...
# general
m
Hello! I have three questions about the global Pact conception. 1. Please, tell me, should I separate pact files demands on provider features? For example, I have an API for the Task Manager application and implemented API by feature architecture on the C# language. Such as TaskCrud (CRUD operations on tasks), TaskFilter (filtering tasks) etc. And SPA React application, where I write contact tests. So my question is, should I have a single pact file (e.g.
task-api-consumer-task-api-provider.json
) for checking responses to all features from the provider side or better split generating pact files depending on provider features (e.g.
task-api-consumer-task-api-provider-crud.json
and
task-api-consumer-task-api-provider-filter.json
) and after that writing two verification test methods on the provider side for each coming pact files? 2. Where should I save the pact file path? Is reading from a configuration file (such as launchSettings.json) for a test project better than C# constant? 3. If a consumer has many providers, which algorithm is better to use if I need to publish one pact file to a specific provider? Depend on the pact file prefix, or save the pact file in a particular folder during generation on the consumer side on passing tests? Thanks, Maksym
1
m
I've responded in #C9UTHV2AD
🙏 1