[Labels] Cannot specify Full-Class ordering from another file
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia dal percorso del codice che gestisce le dipendenze basate sulle classi e il relativo vincolo di corrispondenza di node_id. Traccia il modo in cui le etichette vengono risolte tra i file di test, quindi controlla il comportamento delle etichette delle classi nella documentazione. Il lavoro è completato quando una classe in un altro file di test può essere utilizzata per l'ordinamento senza l'avviso che l'etichetta viene ignorata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hello,
In order to order the tests of a personal project, I've attempted to order tests on the basis of files (or the classes within it), in order to keep the ordering specification short and concise. Note that I've also encountered issues ordering tests in a similar way to the documentation, by specifying a class name as the label.
Alas, it seems that is does not work this way (or is not intended to ?), as I only receive a Warning telling me that the mark is ignored, in light of the failure to match a node_id with the provided label.
Looking a bit into the code, I noticed that the code path handling Class-based dependencies has the constraint of containing exactly two :: strings, meaning that it must probably be a test-name from within a specific test-class.
I believe that it would be quite practical to be able to order tests relatively to test classes, not only from the same file, but also from other test files, as the documentation does not hint at the impossibility to do so.
Thank you for maintaining this piece of code, in hope that my feedback here may help the project and other users !
- Lingua principale
- Python
- Stelle
- 210
- Fork
- 17
- Merge medio
- 1g 1h
- PR unite (30g)
- 4
Preparare l'ambiente
Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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 pytest-dev/pytest-order
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
pytest-dev/pytest-order#64 · 5 commenti ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
pytest-dev/pytest-order#55 · 12 commenti · 4 reazioni ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
pytest-dev/pytest-order#51 · 6 commenti · 1 reazione ·
Tutte le issue di pytest-dev/pytest-order
Issue simili
-
pydanty:is-working
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pydantic/pydantic-ai#8843 ·
I maintainer di solito rispondono entro 1 giorno
-
breaking change enhancement server
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
sktime/sktime#11310 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno