Remove directory from reports when only one file is present for a project #11

Closed
gotwarlost opened this Issue Oct 17, 2012 · 1 comment

Projects

None yet

1 participant

@gotwarlost
Owner

If you have multiple files being covered, the text/ html reports remove the common prefix. However when a project has a single file the whole directory path shows up.

@gotwarlost
Owner

Available in v0.1.8

@gotwarlost gotwarlost closed this Oct 17, 2012
@gotwarlost gotwarlost added a commit that referenced this issue Dec 2, 2012
@gotwarlost Fixes #11 by providing a --save-baseline and --baseline-file options
Test run on instanbul codebase

$ istanbul i lib/ -o out --save-baseline
.
Processed [36] files in 0 secs
Saving baseline coverage at: /Users/ananthk/screwdriver-git/istanbul/coverage/coverage-baseline.json

$ istanbul r --format text-summary
Using reporter [text-summary]

=============================== Coverage summary ===============================
Statements   : 0% ( 0/2085 )
Branches     : 0% ( 0/916 )
Functions    : 0% ( 0/376 )
Lines        : 0% ( 0/1505 )
================================================================================
Done
092f336
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment