coverage html overwrite files that doesn't have .py extension

Issue #69 resolved
Álvaro Justen created an issue

My project setupy ( have three files that I need to test coverage:

  • setupy

The last one have execute permission and is a python script (have #!/usr/bin/env python on the first line) but when I run: {{{ #!/bin/bash

covered_files=" setupy"

rm -rf coverage_html coverage run $covered_files coverage report $covered_files coverage html -d coverage_html $covered_files }}}

coverage creates the directory coverage_html with some files. index.html is OK but there is only one setupy.html (it creates the report and then overwrites it with setupy report).

Ok, this is an issue related to my project because I'm not using .py extension - but we have a lot of projects that doesn't use the .py extension (projects that are made in python and have the main file on /usr/bin, for example (mercurial, easy_install, ipython, update-manager (ubuntu), yum (centos) and a lot of others).

So I suggest to create the HTML file with: original_filename_with_extension.html. In my case above, we'll have and setupy.html, for example.

Comments (1)

  1. Log in to comment