-
-
Notifications
You must be signed in to change notification settings - Fork 687
Open
Labels
✅ acceptedThe core team has agreed that it is a good idea to fix thisThe core team has agreed that it is a good idea to fix this⚡ enhancementRequest for new functionalityRequest for new functionality
Description
🤔 What's the problem you're trying to solve?
Snippets are not currently part of the messages schema. As we move to messages-based formatters, they won't be able to include snippets unless we add them to the schema. This is already the case with the xml, pretty and html formatters.
✨ What's your proposed solution?
Add snippets to the messages schema.
There's more than one good way we could do this, but my first draft would be:
- New
Snippetmessage emitted once for each unique snippet containingidtextthe unmatched step textcodethe suggested codelanguagethe language of the suggested code (useful for e.g. syntax highlighting in formatters)
- New optional field
snippetIdon the existingTestStepResultmessage, to be included for undefined steps where there is a snippet
Metadata
Metadata
Assignees
Labels
✅ acceptedThe core team has agreed that it is a good idea to fix thisThe core team has agreed that it is a good idea to fix this⚡ enhancementRequest for new functionalityRequest for new functionality