Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add suggestions/snippets to the model #2272

Open
Labels
✅ acceptedThe core team has agreed that it is a good idea to fix this ⚡ enhancementRequest for new functionality
@davidjgoss

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 Snippet message emitted once for each unique snippet containing
    • id
    • text the unmatched step text
    • code the suggested code
    • language the language of the suggested code (useful for e.g. syntax highlighting in formatters)
  • New optional field snippetId on the existing TestStepResult message, to be included for undefined steps where there is a snippet

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✅ acceptedThe core team has agreed that it is a good idea to fix this ⚡ enhancementRequest for new functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /