Coverage reports are not being generated

On Ubuntu Oneiric Ocelot 64-bit, PyCharm 2.0.2, with either JDK 1.6 or 1.7 (both Sun/Oracle), I am not getting any coverage reports via the Tools | Generate Coverage Report menu item. The bundled coverage runs fine and I can see results in the gutter, but I want to generate HTML reports. PyCharm offers to generate reports in <project location>/reports, but doesn't produce anything despite reporting success via a dialog box "Report generated in <project location>/reports". If the directory doesn't exist, it isn't created; if I create it manually, it remains empty.

Furthermore, if I tick "Open generated HTML in browser", then I get an error "Cannot start browser: Cannot run program "mozilla": error=2, No such file or directory". Shouldn't that be "firefox" rather than "mozilla"?

I couldn't see any configuration options around this area, so the behaviour looks like a bug: can anyone else confirm whether report generation works for them? Should I go ahead and file an issue for this?


Vinay Sajip

Please sign in to leave a comment.