istanbuljs/nyc

Feature: rename/suppress path root

Aperta

#370 aperta il 27 ago 2016

 (0 commenti) (1 reazione) (0 assegnatari)JavaScript (363 fork)batch import
Great First Contributionenhancementhelp wanted

Metriche repository

Star
 (5765 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor