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

mochajs / mocha / 6211
92%
main: 94%

Build:
Build:
LAST BUILD BRANCH: v11.x
DEFAULT BRANCH: main
Ran 13 Jun 2019 09:53AM UTC
Jobs 1
Files 47
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
6211

Pull #3929

travis-ci

web-flow
More, improved integration tests for watching

To extend the test coverage for mocha in watch mode we add the following
two tests:
* Check that test files are reloaded
* Check that watched dependencies are reloaded

To support this change we consolidate `runMochaJSONWatchAsync`,
`runMochaJSONRawAsync`, and repeated code in tests into `runMochaWatch`.
We introduce `invokeMochaAsync` in `test/integration/helpers` as an
async alternative to `invokeMocha`.

We also eliminate the test for the cursor control character in the
output. Its usefulness is dubious as it relies on an implementation
detail and the other tests cover the intended behavior.

We are also more explicit which test fixtures are used. Instead of
setting `this.testFile` in a `beforeEach` hook we do this explicitly for
the tests that require it. This prevents interference in tests that do
not use the file.
Pull Request #3929: More, improved integration tests for watching

1018 of 1197 branches covered (85.05%)

2687 of 2906 relevant lines covered (92.46%)

671.58 hits per line

Jobs
ID Job ID Ran Files Coverage
7 6211.7 13 Jun 2019 09:53AM UTC 0
92.46
Travis Job 6211.7
Source Files on build 6211
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6211
  • Pull Request #3929
  • PR Base - master (#6210)
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