Open dimaqq opened 1 year ago
Thanks for reporting. Can you provide the command line you used to get this error?
Not a command, I tried https://github.com/aconrad/pycobertura/blob/22b6d34d828cd6dedf8b69203e5f8e158086a802/README.md?plain=1#L393
In the end I've worked around it by passing a filesystem smth object to the cobertura constructor.
I guess the readme can be updated
Ah, I see. I'll take a look at the README this coming week.
FTR, it works if the cobertura instantiation has filesystem arg
cobertura1 = Cobertura(xml1, filesystem=filesystem_factory(xml1, source_prefix))
cobertura2 = Cobertura(xml2, filesystem=filesystem_factory(xml2, source_prefix))
reporter = HtmlReporterDelta(cobertura1, cobertura2, show_source=True)
reporter.generate()
I'm trying to diff a couple of files generated by python coverage tool and converted to XML.
I get an exception here:
Somehow the 2nd clause,
self.cobertura1.filesystem
is None.