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

qunitjs / qunit / 2863
89%
main: 90%

Build:
Build:
LAST BUILD BRANCH: 2.x
DEFAULT BRANCH: main
Ran 13 Sep 2020 12:21AM UTC
Jobs 1
Files 30
Run time 2s
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
2863

push

travis-ci-com

Krinkle
Build: Add source maps and Node.js tests to coverage report

* Add BUILD_TARGET=coverage option to Rollup configuration
  to generate source maps.

* Then run the regular CLI tests.
  - Wrapped by the 'nyc' command which lazily instruments any
    files imported at run-time from bin/, src/cli/ or dist/,
    and then writes JSOn data to its private .nyc_output/ to
    keep track of which branches have been coveraged etc.

  - We use --use-spawn-wrap to also track the various bin/qunit.js
    subproceses spawned by our tests.

  - The 'nyc' command would normally immediately produce the
    HTML and LCOV reports, but we're using the --silent option
    to hold back on that.

* Then run the 'grunt qunit' tests in Headless Chrome.
  Just like before, we still use the same coverage bridge to write
  Istanbul's `window.__coverage__` to JSON files, just like NYC
  does for the Node.js tests.
  In order for the coverage report cover all Node.js and browser
  executions, we need to write the data to a single flattened
  directory.
  Subdirectories are not yet supported, so we need a reasonably
  unique file prefix (ref https://github.com/istanbuljs/nyc/issues/879).

* Then run 'nyc report' to generate the reports.

* For the CI build, invoke coveralls, same as before, although
  I've removed the grunt-coveralls wrapper and just used the
  coveralls CLI directly to make things less complicated.

This effectively increases code coverage from 55% to 61%.
It is higher because it now includes branches covered by Node
or CLI only. But it also covers more input files, previously just
dist/, and now bin/ and src/cli/ as well.

738 of 1427 branches covered (51.72%)

1428 of 2342 relevant lines covered (60.97%)

109.31 hits per line

Jobs
ID Job ID Ran Files Coverage
6 2863.6 (NPM_SCRIPT=coveralls) 13 Sep 2020 12:21AM UTC 0
60.97
Travis Job 2863.6
Source Files on build 2863
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #2863
  • 1830856b on github
  • Prev Build on master (#2859)
  • Next Build on master (#2872)
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