docs: document the contributor testing workflow
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- documentation
Direzione di ricerca
Inizia individuando la documentazione per i contributori e i test pytest esistenti per humanize.clamp(), usando issue #429 come riferimento di esempio. Aggiungi una breve sezione che tratti l'individuazione dei test, le convenzioni del repository, i casi parametrizzati, i comandi per i test mirati e per l'intera suite, e la verifica delle regressioni; il lavoro è completato quando il flusso di lavoro è chiaro per chi contribuisce per la prima volta.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
As a first-time contributor, I found it difficult to determine the
expected workflow for adding and verifying tests.
While working on #429, I had to figure out:
- how to find the appropriate test file
- how to follow the repository's existing pytest conventions
- how to run focused tests
- how to run the full test suite
- how to verify that a regression test actually fails when the
protected behavior is broken
The current contributor documentation does not explain this workflow
for someone making their first test contribution.
Proposed change
Add a short contributor-testing section explaining how to:
- Find the relevant existing test file.
- Follow the repository's existing test patterns.
- Add parameterized test cases where appropriate.
- Run the relevant tests locally.
- Intentionally verify that the test catches a regression.
- Run the full test suite before opening a PR.
The section would use a small example based on the existing test suite.
Motivation
I encountered this while working on #429, where I added parameterized
tests for two-sided humanize.clamp() boundary behavior.
I also intentionally introduced a regression to verify that the new
test failed, then restored the implementation and ran the full suite.
Related PR: #429
- Lingua principale
- Python
- Stelle
- 761
- Fork
- 185
- Merge medio
- 1h 42m
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
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 python-humanize/humanize
-
intcomma returns scientific notation for large floatsForse già presa @TheNetherWatcher l’ha presa 10 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
python-humanize/humanize#431 ·
I maintainer di solito rispondono entro 1 giorno
-
docs: document how to run the test suite locallyForse già presa @yuefdev l’ha presa 9 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
python-humanize/humanize#430 ·
I maintainer di solito rispondono entro 1 giorno
-
metric() adds a digit when a value rounds into quettaForse già presa @SashaMIT l’ha presa 11 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
python-humanize/humanize#423 ·
I maintainer di solito rispondono entro 1 giorno
-
precisedelta() silently drops the sign of negative timedeltasForse già presa @Mukller l’ha presa 49 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
python-humanize/humanize#379 ·
I maintainer di solito rispondono entro 1 giorno
-
`naturalsize()` raises `ValueError` for custom format strings with textForse già presa @Sanjays2402 l’ha presa 73 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
python-humanize/humanize#366 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di python-humanize/humanize
Issue simili
-
bug Triage-Needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
FuRongJun-1999/dsh-memory#170 ·
I maintainer di solito rispondono entro 1 giorno
-
[开源推荐] 打拼音就出篆书的输入法,附古文字创作小工具Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
521xueweihan/HelloGitHub#3940 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100