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

mochajs / mocha / 3866 / 1
94%
main: 94%

Build:
Build:
LAST BUILD BRANCH: v11.x
DEFAULT BRANCH: main
Ran 13 Dec 2017 01:39AM UTC
Files 34
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

13 Dec 2017 01:28AM UTC coverage: 89.968%. Remained the same
TARGET=test-node COVERAGE=true

push

travis-ci

boneskull
Move re variable definition in lookupFiles Utility (#3082)

* move regexp definition in lookupFiles.

I am using mocha programmatically, along with its utility `lookupFiles`.

A regular expression must be evaluated to lookup files although it is only needed in one case where a glob is not provided. Shifting the `re` variable definition down to where it is needed will avoid this issue, also eliminate the requirement of always sending an array to the extensions parameter (although it might not be needed)

* add unit tests

remove commented file

775 of 937 branches covered (82.71%)

1982 of 2203 relevant lines covered (89.97%)

402.57 hits per line

Source Files on job 3866.1 (TARGET=test-node COVERAGE=true)
  • Tree
  • List 0
  • Changed 10
  • Source Changed 1
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 3866
  • Travis Job 3866.1
  • 6fc2d9e9 on github
  • Prev Job for TARGET=test-node COVERAGE=true on master (#3861.1)
  • Next Job for TARGET=test-node COVERAGE=true on master (#3874.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