nedbat / coveragepy
Showing 2 of 5 files from the diff.

@@ -224,6 +224,11 @@
Loading
224 224
        for static in self.STATIC_FILES:
225 225
            shutil.copyfile(data_filename(static), os.path.join(self.directory, static))
226 226
227 +
        # .gitignore can't be copied from the source tree because it would
228 +
        # prevent the static files from being checked in.
229 +
        with open(os.path.join(self.directory, ".gitignore"), "w") as fgi:
230 +
            fgi.write("# Created by coverage.py\n*\n")
231 +
227 232
        # The user may have extra CSS they want copied.
228 233
        if self.extra_css:
229 234
            shutil.copyfile(self.config.extra_css, os.path.join(self.directory, self.extra_css))

@@ -144,6 +144,7 @@
Loading
144 144
        self.assert_exists("htmlcov/helper2_py.html")
145 145
        self.assert_exists("htmlcov/style.css")
146 146
        self.assert_exists("htmlcov/coverage_html.js")
147 +
        self.assert_exists("htmlcov/.gitignore")
147 148
148 149
    def test_html_created(self):
149 150
        # Test basic HTML generation: files should be created.
Files Coverage
coverage 90.93%
tests 99.62%
__main__.py 100.00%
Project Totals (90 files) 96.15%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading