istanbuljs/nyc

Feature: rename/suppress path root

Open

#370 opened on Aug 27, 2016

View on GitHub
 (0 comments) (1 reaction) (0 assignees)JavaScript (392 forks)batch import
Great First Contributionenhancementhelp wanted

Repository metrics

Stars
 (5,468 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I love the text summary output, but it doesn't work so well with 2 cases I run into frequently.

super long package names

------------------------------------------|----------|----------|----------|----------|----------------|
File                                      |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
------------------------------------------|----------|----------|----------|----------|----------------|
All files                                 |    94.23 |    77.42 |    88.89 |    94.23 |                |
 framework-prefixed-long-package-name     |       95 |       75 |      100 |       95 |                |
  index.js                                |       95 |       75 |      100 |       95 |             25 |
 framework-prefixed-long-package-name/lib |    93.75 |    78.95 |    85.71 |    93.75 |                |
  tunnel.js                               |    93.75 |    78.95 |    85.71 |    93.75 |          37,53 |
------------------------------------------|----------|----------|----------|----------|----------------|

paths that are hash package name and environment (CI)

----------------|----------|----------|----------|----------|----------------|
File            |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
----------------|----------|----------|----------|----------|----------------|
All files       |    94.23 |    77.42 |    88.89 |    94.23 |                |
 abcdef0123     |       95 |       75 |      100 |       95 |                |
  index.js      |       95 |       75 |      100 |       95 |             25 |
 abcdef0123/lib |    93.75 |    78.95 |    85.71 |    93.75 |                |
  tunnel.js     |    93.75 |    78.95 |    85.71 |    93.75 |          37,53 |
----------------|----------|----------|----------|----------|----------------|

I'm not sure why the paths are reported relative to .. instead of ., but it would be nice if that could be overridden.

Contributor guide