• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

istanbuljs / nyc / 1891 / 4
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 28 Mar 2019 08:13PM UTC
Files 12
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Mar 2019 07:49PM UTC coverage: 96.349% (-0.07%) from 96.414%
1891.4

push

travis-ci

JaKXz
test(instrument): should return unmodified source if no transform found (#1036)

* Test that the instrument command returns unmodified source if there is no transform found for a file extension.

Currently this behaviour can only be reached when trying to instrument a single file.
In the case of instrumenting a directory, files with an extension with no matching transform are filtered out before they can be instrumented.

* Cleanup instrumentation code again with a focus on paths

The main aim of this has been to clarify whether we're working with relative or absolute file paths, and removing unnecessary transformations.  Although I've made a few other 'small' changes here and there.

Key changes:
	* Created a new private method `NYC._transform`, common to `_maybeInstrumentSource` and `instrumentAllFiles`.
	* Renamed the param in `walkAllFiles` forEach handler to `relFile` to explicitly state the file representation being used.
	* Let the `addAllFiles` visitor function rely on `testExclude` to determine which files to instrument

161 of 188 branches covered (85.64%)

475 of 493 relevant lines covered (96.35%)

189.02 hits per line

Source Files on job 1891.4
  • Tree
  • List 0
  • Changed 12
  • Source Changed 12
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1735
  • Travis Job 1891.4
  • 5c1eb38b on github
  • Prev Job for on master (#1880.5)
  • Next Job for on master (#1893.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc