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

mochajs / mocha / 5258
94%
main: 94%

Build:
Build:
LAST BUILD BRANCH: v11.x
DEFAULT BRANCH: main
Ran 28 Dec 2018 11:40PM UTC
Jobs 1
Files 45
Run time 4s
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
5258

push

travis-ci

boneskull
Fix an error when fn===undefined (#3580)

* Fix an error when fn===undefined

This change fixes an error that occurs when reporter is 'xunit' and run is called without callback: " /rbd/pnpm-volume/a49b9a7c-c3f0-42ba-ae66-612ead86e96c/node_modules/.registry.npmjs.org/mocha/5.2.0/node_modules/mocha/lib/reporters/xunit.js:126
 fn(failures);  ^
TypeError: fn is not a function "

* Add test `.reporter("xunit").run(fn)`

This test has `try catch` block to catch an error if it occurs and write it to the console.

* formatting

* Update mocha.spec.js

926 of 1129 branches covered (82.02%)

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

2382 of 2631 relevant lines covered (90.54%)

513.53 hits per line

Jobs
ID Job ID Ran Files Coverage
7 5258.7 28 Dec 2018 11:40PM UTC 0
90.54
Travis Job 5258.7
Source Files on build 5258
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5258
  • ee6d5761 on github
  • Prev Build on master (#5250)
  • Next Build on master (#5262)
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