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

mochajs / mocha / 7879
94%
main: 94%

Build:
Build:
LAST BUILD BRANCH: v11.x
DEFAULT BRANCH: main
Ran 28 Jul 2020 09:37PM UTC
Jobs 1
Files 55
Run time 19s
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
7879

push

travis-ci

boneskull
initial implementation of global setup/teardown

- adds a generic "plugin loader" which handles root hooks, global setup/teardown, future
- renamed `validatePlugin` to `validateLegacyPlugin`. reporters/interfaces should eventually be refactored to use this plugin system
- should maybe decouple plugins from the `Mocha` prototype
- new events emitted by `Runner` for global setup/teardown
- need to add unit tests, need to support parallel mode

upgrade eslint-config-semistandard

more implementation, tests

added more tests, implementation. needs #4366 for browser compat

- removed dead code in `lib/cli/run-helpers.js`
- be sure not to send certain options to the worker processes
- fix root hook bug in worker
- send global fixtures to `Runner` constructor
- removed debugs
- **add `Process.unhandledRejection` listeners** which might be bad
- fix some tests while I'm fixing tests

reorganize plugin fixtures

add "to contain once" mocha result output assertion

(to ensure some output is not duplicated)

add runGlobalSetup, runGlobalTeardown to Mocha

revert changes to Runner

`Mocha` will handle global fixtures
no events will be emitted

remove test/integration/options/require.spec.js which is now in test/integration/plugins/

revert change to ParallelBufferedRunner which invoked global fixtures

pull helper code out of test/integration/options/watch.spec.js into integration test helpers

- because it's nice to be able to test watching elsewhere
- also renamed `runMochaWatch` to `runMochaWatchJSON` and provide `runMochaWatch` for plain output

move tests from test/integration/options/require.spec.js into test/integration/plugins/root-hooks.spec.js

Mocha#run now runs global fixtures; add watch mode support

- add `enableGlobalSetup()` and `enableGlobalTeardown()` methods on `Mocha`
- update `globalSetup()` and `globalTeardown()` methods
- watch mode runs global teardown upon `SIGINT`. is that right?

add command prop to runMochaJSON return value

if a fixtu... (continued)

1296 of 1475 branches covered (87.86%)

3387 of 3602 relevant lines covered (94.03%)

909.84 hits per line

Jobs
ID Job ID Ran Files Coverage
6 7879.6 (NODE_OPTIONS="--trace-warnings") 28 Jul 2020 09:37PM UTC 0
94.03
Travis Job 7879.6
Source Files on build 7879
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7879
  • 699016fc on github
  • Prev Build on boneskull/issue/4308-global-setup-teardown (#7857)
  • Next Build on boneskull/issue/4308-global-setup-teardown (#7883)
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