coverage html does not suport --skip-covered

Issue #433 closed
John Allen created an issue

The docs seem to indicate that --skip-covered is common to [report|xml|html], but I can not seem to use this parameter in 4.0.1 and in the current head (, version 4.0.2a1). I'd love to clean up my html reports.

{code} » ~/.local/bin/coverage html --skip-covered no such option: --skip-covered Use 'coverage help' for help. {code}

Comments (16)

  1. Ned Batchelder repo owner

    Sorry, I didn't mean for the docs to imply that --skip-covered applied to all reporting styles.

  2. John Allen reporter

    Thanks for the quick response! The line in question that made me confused is "Values common to many kinds of reporting."

  3. Ned Batchelder repo owner

    html report --skip-covered with branches #433

    Add a test because the code path is significantly different.

    Also document --skip-covered with the coverage html command.

    close #433

    → <<cset c02d9e294169>>

  4. Alex Kavanaugh

    This option doesn't seem to be available via a configuration file (unless I'm missing something). Would enabling that be difficult to implement?

  5. Ned Batchelder repo owner

    @kavanaugh_development Doesn't "[report] skip_covered = True" work for you in the .coveragerc file?

  6. Alex Kavanaugh

    @ned It does. My bad - I assumed [html] skip_covered = True was required for this to work for html output. Carry on!

  7. Log in to comment