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

mbland / url-pointers / 113
98%
master: 98%

Build:
Build:
LAST BUILD BRANCH: rename
DEFAULT BRANCH: master
Ran 13 May 2017 12:38PM UTC
Jobs 2
Files 19
Run time 6s
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
113

push

travis-ci

mbland
Collect and combine backend, browser test coverage

Closes #24. I think. This required a bit of hacking, but works really
well. First, the most straightforward way to instrument the code was to
bundle the app and test code using `browserify` and the
`browserify-istanbul` transform.

However, this meant creating a new landing page for the coverage tests,
public/tests/coverage.html, to faciliate this. This page is used only
for `./go test --coverage`, which now automatically collects browser
coverage; the existing public/tests/index.html is used for `./go test
browser` and for live loading by `./go serve --test`.

In `scripts/test`, coverage collection and report generation (after
argument parsing) is now encapsulated within
`_test_generate_coverage_report`. The `nyc` command now writes to the
`.coverage` directory rather than the default `.nyc_output`. It also
doesn't generate reports right away anymore. It runs (and must be run)
before `./go test browser` to generate `.coverage/browser.json`, which
is defined in the `afterEnd` for PhantomJS and `mocha-phantomjs` from
`tests/helpers/phantomjs.js`.

Finally, we run `istanbul report` to combine the output of `nyc` and
`./go test browser` into LCOV and HTML reports, which are then processed
the same as before.

There's probably some cleanup to be done on the scripts, as well as some
common behavior to extract into a go-script-bash module. The bottom line
is that it's now easy to generate combined coverage reports while
retaining the ability to do live testing and development and the
browser.

137 of 152 branches covered (90.13%)

Branch coverage included in aggregate %.

1268 of 1280 relevant lines covered (99.06%)

8.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 113.1 (CODECLIMATE_REPO_TOKEN=[secure]) 13 May 2017 12:39PM UTC 0
98.11
Travis Job 113.1
2 113.2 (CODECLIMATE_REPO_TOKEN=[secure]) 13 May 2017 12:38PM UTC 0
98.11
Travis Job 113.2
Source Files on build 113
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #113
  • 10872fca on github
  • Next Build on coverage (#114)
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