Add suggestions/snippets to the model

Aperta
#2,272 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Ambito
api

Direzione di ricerca

Individua lo schema messages e ispeziona i formatter xml, pretty e html, che attualmente non possono includere snippet. Esamina i tipi di messaggio esistenti e la gestione dei formatter prima di decidere come dovrebbero essere integrati Snippet e TestStepResult.snippetId; il lavoro è completo quando nello schema sono rappresentati gli snippet univoci e i riferimenti a undefined-step.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

:white_check_mark: accepted :zap: enhancement
🤔 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
Lingua principale
Nessun dato sulla lingua
Stelle
3.4k
Fork
676
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cucumber/common

Tutte le issue di cucumber/common

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.