Code coverage off by 2 lines in components with co-located template
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- testing-qa
Direzione di ricerca
Inizia con un report di coverage per un componente con un template colocato e confrontalo con il codice sorgente generato descritto qui. Usa le pull request correlate #558 e #763 come contesto. Il lavoro è completato quando l’import iniettato e la costante del template non spostano più le righe sorgente riportate e non vengono più conteggiati come coverage del codice sorgente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
In components with a co-located template, the plugin adds import { hbs } and const __COLOCATED_TEMPLATE__ = ... to the source file, and that is affecting the code coverage. Not only does this affect the percentage itself, as const __COLOCATED_TEMPLATE__ = ... is seen as a line that is covered without it being part of the source code, it also makes it very difficult to look at a coverage report as the lines are off by 2 (see screenshot)
In https://github.com/ember-cli/ember-cli-htmlbars/pull/558 and https://github.com/ember-cli/ember-cli-htmlbars/pull/763, something similar is addressed, but then just for source maps which appeared to be resolved without the fixes. However, for the code coverage this is still relevant, and placing the lines at the end would at least solve the off-by-2 issues (would have been fun if it was the typical off-by-1 error 😄)
- Lingua principale
- JavaScript
- Stelle
- 77
- Fork
- 65
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ember-cli/ember-cli-htmlbars
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
ember-cli/ember-cli-htmlbars#792 ·
-
TemplateFactory type incompatible with setComponentTemplate type from @types/ember__component Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
ember-cli/ember-cli-htmlbars#787 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
ember-cli/ember-cli-htmlbars#781 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
ember-cli/ember-cli-htmlbars#774 · 2 commenti ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
ember-cli/ember-cli-htmlbars#753 · 1 commento · 1 reazione ·
Tutte le issue di ember-cli/ember-cli-htmlbars
Issue simili
-
Update HugeIcons library Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
antfu-collective/icones#398 ·
-
ECmail.com Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
wesbos/burner-email-providers#554 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
radiantearth/stac-browser#1023 ·
-
HMR stops working Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
components-web-app/docs#92 ·