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

istanbuljs / nyc / 1891
100%

Build:
DEFAULT BRANCH: master
Ran 28 Mar 2019 08:13PM UTC
Jobs 11
Files 12
Run time 21min
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

pending completion
1891

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%)

26 of 26 new or added lines in 1 file covered. (100.0%)

475 of 493 relevant lines covered (96.35%)

1965.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1891.1 28 Mar 2019 08:16PM UTC 0
95.94
Travis Job 1891.1
2 1891.2 28 Mar 2019 08:17PM UTC 0
94.52
Travis Job 1891.2
3 1891.3 28 Mar 2019 08:20PM UTC 0
95.74
Travis Job 1891.3
4 1891.4 28 Mar 2019 08:13PM UTC 0
96.35
Travis Job 1891.4
5 1891.5 28 Mar 2019 08:13PM UTC 0
96.35
Travis Job 1891.5
6 1891.6 28 Mar 2019 08:32PM UTC 0
96.35
Travis Job 1891.6
7 1891.7 28 Mar 2019 08:34PM UTC 0
96.35
Travis Job 1891.7
8 1891.8 28 Mar 2019 08:20PM UTC 0
96.35
Travis Job 1891.8
9 1891.9 28 Mar 2019 08:21PM UTC 0
96.35
Travis Job 1891.9
10 1891.10 28 Mar 2019 08:24PM UTC 0
96.35
Travis Job 1891.10
11 1891.11 28 Mar 2019 08:26PM UTC 0
96.35
Travis Job 1891.11
Source Files on build 1891
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1891
  • 5c1eb38b on github
  • Prev Build on master (#1880)
  • Next Build on master (#1893)
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