-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
Q1Initiative is planned for a Q1 launchInitiative is planned for a Q1 launch
Description
When generating pact tests, the output does not always match the existing style, idioms, frameworks and SDK versions as the current project the engineer is working on. For example, the test might generate chai matchers and assertions, for a project that uses Jest.
Additionally, the style of the test may not be consistent with the existing tests.
One way to address this problem, and improve the output, is to allow users to provide their own templates with their existing patterns and style encoded in them, when asking PactFlow to generate tests. PactFlow will use this as a template to inject the test cases into.
- Ability to provide a (local) template when generating tests
- Ability to pass additional text-based instructions with the template to guide generation
- New permission will be created to allow users to specify local templates
In a future capability, we will support a template library within PactFLow:
- Ability to upload templates to PactFlow into a template library (via API or UI)
- Templates may be associated with the team or no team (follow the secrets model)
- UI to manage the templates
- Ability to restrict all of the above via RBAC
- Permission to allow creating/updating/deleting (managing) and reading existing templates (at the * and team scope)
Metadata
Metadata
Assignees
Labels
Q1Initiative is planned for a Q1 launchInitiative is planned for a Q1 launch
Type
Projects
Status
Shipped 🚀