Empty coverage report depending on mypy call location
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 20.6k
- Forks
- 3.3k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
hi,
to my understanding, there's a bug in mypy coverage report generation.
talking about the --html-report and --xml-report options (haven't tested the others).
if you call mypy from a folder parallel to the location of your sources folder, the files are analyzed properly but the report is empty.
no error is showing
steps to reproduce :
- create a dummy module for mypy to analyse
- create a folder next to your sources folder
- call
mypy ../src/mod/myfile.py --xml-report empty-report - look a the file index.xml and see that myfile.py is not listed
conversely if you call mypy from the source folder, you get a proper report
see attached files for an example.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere das Problem bei der Berichtgenerierung, indem du mypy ../src/mod/myfile.py --xml-report empty-report aus einem Ordner parallel zum Quellordner ausführst, und vergleiche dies mit einer Ausführung aus dem Quellordner. Beginne mit den Einstiegspunkten --xml-report und --html-report und prüfe index.xml; fertig ist es, wenn die analysierte Datei im generierten Bericht an beiden Speicherorten erscheint.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100