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

mochajs / mocha
94%
main: 94%

Build:
Build:
LAST BUILD BRANCH: v11.x
DEFAULT BRANCH: main
Repo Added 17 Jan 2017 09:42PM UTC
Files 57
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

LAST BUILD ON BRANCH v11.x
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 5266-fs-extra
  • 5308-new-site-proofreading
  • Bamieh-patch-1
  • Expresso
  • Munter/check-doc-links
  • Munter/docs-autoprefixer
  • Munter/fix-3626-reduce-ci-runs
  • Munter/fix-3626-reduce-ci-waste
  • Munter/fix-jsdoc
  • Munter/transpilation
  • Third_party_UIs
  • Third_party_reporters
  • WithoutCaps-master
  • _mocha
  • add-browser-tests
  • add-integration-tests-for-file-watching
  • add-root-to-eslintrc
  • add-spies-to-legacy-docs
  • allowUncaught-node
  • alphabetize-nav
  • appveyor-versions
  • artifact-note
  • assertion_libraries
  • assetgraph-builder-update
  • audit-fix
  • auto-doc-usage
  • avoid-dist-file-modification-in-test
  • boneskull/3p-reporter-docs
  • boneskull/after-each-this-test-error-test
  • boneskull/api-doc-fixes
  • boneskull/audit
  • boneskull/audit-20191011
  • boneskull/audit-upgrades
  • boneskull/block-more-spammers
  • boneskull/chore/fix-build
  • boneskull/chore/load-files-test-tweak
  • boneskull/disable-oc-badges
  • boneskull/docs/tj-ad
  • boneskull/experimental/avoid-deprecated-add-path
  • boneskull/experimental/browser-integration
  • boneskull/experimental/gh-action
  • boneskull/experimental/is-module
  • boneskull/experimental/no-node-no-spawn
  • boneskull/experimental/node-12-netlify-only
  • boneskull/experimental/skip-browser-tests
  • boneskull/feat/support-leading-dot-in-extname
  • boneskull/fix-custom-reporter-tutorial
  • boneskull/fix-init-failure
  • boneskull/fix-netlify-images
  • boneskull/global-fixture-updates
  • boneskull/i-hate-automated-security-checks
  • boneskull/integration-test-improvements
  • boneskull/issue/2839-11ty-changes
  • boneskull/issue/2839-concurrent
  • boneskull/issue/2839-debug-output
  • boneskull/issue/2839-docs
  • boneskull/issue/2839-new-error
  • boneskull/issue/2839-nyc-fixes
  • boneskull/issue/2839-parallel
  • boneskull/issue/2839-root-hook-plugins
  • boneskull/issue/2839-signal-fixes
  • boneskull/issue/2839-test-fixes
  • boneskull/issue/2839-test-helpers
  • boneskull/issue/2839-travis
  • boneskull/issue/2839-wallaby
  • boneskull/issue/3349
  • boneskull/issue/3643
  • boneskull/issue/3681
  • boneskull/issue/3683
  • boneskull/issue/3687
  • boneskull/issue/3697
  • boneskull/issue/3706
  • boneskull/issue/3713
  • boneskull/issue/3716
  • boneskull/issue/3744
  • boneskull/issue/3746
  • boneskull/issue/3748
  • boneskull/issue/3761
  • boneskull/issue/3763
  • boneskull/issue/3773
  • boneskull/issue/3785
  • boneskull/issue/3808
  • boneskull/issue/3813
  • boneskull/issue/3817
  • boneskull/issue/3854
  • boneskull/issue/3868
  • boneskull/issue/3871
  • boneskull/issue/4145
  • boneskull/issue/4151
  • boneskull/issue/4308-global-setup-teardown
  • boneskull/issue/4310-esm-root-hook-docs
  • boneskull/issue/4327-watch-parallel
  • boneskull/issue/4356
  • boneskull/issue/4393-isbrowser
  • boneskull/issue/4398
  • boneskull/issue/4403-object-ids
  • boneskull/issue/4412
  • boneskull/issue/4417
  • boneskull/issue/4423-polyfill-leak
  • boneskull/issue/4469
  • boneskull/issue/4474
  • boneskull/issue/4481-uncaught
  • boneskull/issue/4495-watch-leak
  • boneskull/issue/4508-global-fixtures
  • boneskull/issues/3676
  • boneskull/jsdoc-ts-support
  • boneskull/lint-docs
  • boneskull/mocha-unit-tests
  • boneskull/move-webpack-test-temp-file
  • boneskull/netlify-nightly-deploy
  • boneskull/no-parallel-by-default
  • boneskull/node-12-build
  • boneskull/npm-audit-fix
  • boneskull/openjsf-logo
  • boneskull/pr/4458
  • boneskull/pr/GChuf-dep2
  • boneskull/pre-v8.1.0-updates
  • boneskull/pull/4251
  • boneskull/refactor-assertions
  • boneskull/refactor/collect-files
  • boneskull/refactor/event-constants
  • boneskull/rename-smoke-test
  • boneskull/revert-3395
  • boneskull/rewiremock-fix
  • boneskull/rollup-umd
  • boneskull/saucelabs-gha
  • boneskull/show-all-sponsors
  • boneskull/test-node-15
  • boneskull/testing-kw
  • boneskull/timeout-error
  • boneskull/timeout-fixes
  • boneskull/update-contributors
  • boneskull/update-docdash
  • boneskull/update-workerpool
  • boneskull/wallaby
  • boneskull/yargs-upgrade
  • build-new-site
  • bye-run
  • cache-fix
  • canary
  • cb-sauce-build
  • chore/use-neostandard
  • chrome-headless-esm-tests
  • ci-node-24
  • ci-update
  • compilers-glob
  • concurrently
  • context-coverage
  • copy-esm
  • count_assertions
  • craigtaub/4317-fix-api-docs-globals
  • craigtaub/addExamples1
  • craigtaub/addOpenJsCOC
  • craigtaub/addPrintLine
  • craigtaub/exampleLinks
  • craigtaub/fixNoisyMessage
  • craigtaub/fixNoisyMessages2
  • craigtaub/inspectDebug
  • craigtaub/issue/1799-browser-delay-issue
  • craigtaub/issue/4254-timeouts
  • craigtaub/update-docdash
  • css-smooth-scrolling
  • dco
  • dead-reporter-code
  • debug
  • demonstrate-bug
  • dependabot/github_actions/github-actions-a331d3ec2d
  • dependabot/github_actions/github-actions-d244d1801a
  • dependabot/npm_and_yarn/elliptic-6.5.3
  • dependabot/npm_and_yarn/ini-1.3.7
  • dependabot/npm_and_yarn/urijs-1.19.5
  • dependabot/npm_and_yarn/urijs-1.19.6
  • deprecate-compilers
  • deprecate-tests
  • diff-7
  • disable-link-check
  • docs-next
  • docs-next-api-typedoc
  • docs-next-client-redirects
  • docs-next-example-tests
  • docs-node-11-requirement
  • dts-start
  • empathic
  • enforce-unix-newlines
  • eslint
  • eslint-fix
  • eslint-js-recommended
  • eslint-plugin-n
  • experimental/bdd2
  • experimental/fix-ci
  • experimental/no-custom-travis-install
  • experimental/package-scripts
  • experimental/sauce-connect
  • experimental/travis
  • experimental/unexpected
  • explicit-browser-support-info
  • feat-5289/show-relative-filepath-in-reporters
  • feat/esm-config
  • feat/replace-wmic-for-mocha-v11-tests
  • feature-nested-test-detection
  • feature/5049
  • files-list
  • fix-5196
  • fix-5278
  • fix-5304
  • fix-5355-watch-mode
  • fix-5376
  • fix-5412
  • fix-5425
  • fix-5436
  • fix-5448
  • fix-5467
  • fix-betlify-build
  • fix-ci
  • fix-deprecated-warn-gh-actions
  • fix-docs
  • fix-docs-next-base
  • fix-done
  • fix-duplicate-global-leak-docs
  • fix-expect
  • fix-extends
  • fix-mocha-default-import-error-message
  • fix-related-tools
  • fix-tests
  • fix-unsafe-eval
  • fix-xunit-integration
  • fix/html-reporter
  • fix/import-parallel
  • forbid
  • forbid-only-ci
  • format-v11.x
  • greenkeeper/browserify-14.0.0
  • greenkeeper/browserify-14.2.0
  • greenkeeper/browserify-14.3.0
  • greenkeeper/coffee-script-1.12.3
  • greenkeeper/coffee-script-1.12.4
  • greenkeeper/coffee-script-1.12.5
  • greenkeeper/coffee-script-1.12.6
  • greenkeeper/coffee-script-pin-1.12.2
  • greenkeeper/coveralls-2.11.16
  • greenkeeper/coveralls-2.12.0
  • greenkeeper/coveralls-2.13.0
  • greenkeeper/coveralls-2.13.1
  • greenkeeper/debug-2.6.1
  • greenkeeper/debug-2.6.2
  • greenkeeper/debug-2.6.3
  • greenkeeper/debug-2.6.4
  • greenkeeper/debug-2.6.5
  • greenkeeper/debug-2.6.6
  • greenkeeper/debug-2.6.7
  • greenkeeper/debug-2.6.8
  • greenkeeper/eslint-3.14.0
  • greenkeeper/eslint-3.14.1
  • greenkeeper/karma-1.4.1
  • greenkeeper/karma-1.5.0
  • greenkeeper/karma-1.6.0
  • greenkeeper/karma-1.7.0
  • greenkeeper/karma-browserify-5.1.1
  • greenkeeper/karma-chrome-launcher-2.1.0
  • greenkeeper/karma-chrome-launcher-2.1.1
  • greenkeeper/karma-chrome-launcher-pin-2.1.0
  • greenkeeper/karma-phantomjs-launcher-1.0.3
  • greenkeeper/karma-phantomjs-launcher-1.0.4
  • greenkeeper/karma-phantomjs-launcher-pin-1.0.2
  • greenkeeper/karma-pin-1.3.0
  • greenkeeper/karma-spec-reporter-0.0.27
  • greenkeeper/karma-spec-reporter-0.0.28
  • greenkeeper/karma-spec-reporter-0.0.29
  • greenkeeper/karma-spec-reporter-0.0.30
  • greenkeeper/karma-spec-reporter-0.0.31
  • greenkeeper/nyc-10.1.0
  • greenkeeper/nyc-10.1.2
  • greenkeeper/nyc-10.2.0
  • greenkeeper/nyc-10.3.0
  • greenkeeper/nyc-10.3.2
  • greenkeeper/nyc-pin-10.0.0
  • greenkeeper/rimraf-2.6.0
  • greenkeeper/rimraf-2.6.1
  • greenkeeper/rimraf-pin-2.5.4
  • greenkeeper/semistandard-10.0.0
  • greenkeeper/semistandard-11.0.0
  • greenkeeper/should-11.2.0
  • greenkeeper/should-11.2.1
  • greenkeeper/should-pin-11.2.0
  • greenkeeper/watchify-3.9.0
  • ignore-newline-diffs-in-test
  • improve-workflows
  • improved-watching
  • issue-form-performance
  • issue/1304
  • issue/2478
  • issue/2529-retryable-fail-event
  • issue/2615
  • issue/2838
  • issue/2840
  • issue/2867
  • issue/2879
  • issue/2879-prep
  • issue/2890
  • issue/2952
  • issue/2984
  • issue/2987-docs
  • issue/2999
  • issue/3000
  • issue/3009
  • issue/3016
  • issue/3018
  • issue/3025
  • issue/3073
  • issue/3091
  • issue/3118
  • issue/3119
  • issue/3138
  • issue/3142
  • issue/3146
  • issue/3148
  • issue/3226
  • issue/3289
  • issue/3341
  • issue/3342
  • issue/3401
  • issue/3570
  • issue/3624
  • issue/3634
  • issue/3636
  • issue/3639
  • issue/3913
  • issue/4035
  • issue/4090
  • issue/4163
  • issue/5258
  • issue/627
  • it-timeout
  • jleedev-async-describe
  • jsdoc
  • jsdoc-api
  • juergba/GH-actions
  • juergba/Node19
  • juergba/actions
  • juergba/allowUncaught
  • juergba/amd
  • juergba/backers
  • juergba/beforeEach
  • juergba/binMocha
  • juergba/browser
  • juergba/browser-es2018
  • juergba/browser-setup
  • juergba/bundler
  • juergba/canvas
  • juergba/changelog-615
  • juergba/child-esm
  • juergba/chokidar
  • juergba/clean-options
  • juergba/coffee
  • juergba/config
  • juergba/cross-spawn
  • juergba/debug
  • juergba/dependencies
  • juergba/deps
  • juergba/devDeps
  • juergba/diff
  • juergba/docs-delay
  • juergba/drop-ie11
  • juergba/drop10
  • juergba/dry-run
  • juergba/errSuite
  • juergba/es2017
  • juergba/esm-cleanup
  • juergba/esm-debris
  • juergba/event-leak
  • juergba/extraGlobals
  • juergba/firefox
  • juergba/getOptions
  • juergba/gha-docs
  • juergba/gha-double
  • juergba/grep
  • juergba/growl
  • juergba/hook-failure
  • juergba/inspect-timeout
  • juergba/issue/2546
  • juergba/issue/2546spec
  • juergba/issue/3414
  • juergba/issue/3826
  • juergba/issue/3896
  • juergba/karma
  • juergba/karma-mocha
  • juergba/linter
  • juergba/loadMochaOpts
  • juergba/lookup-files
  • juergba/minimatch
  • juergba/mocha-browser
  • juergba/mocha-constructor
  • juergba/multiple
  • juergba/noTests
  • juergba/node-option
  • juergba/node12
  • juergba/node13
  • juergba/nodev13
  • juergba/pending
  • juergba/prettier
  • juergba/prodDepend
  • juergba/readme-backers
  • juergba/recover-uncaught
  • juergba/remark
  • juergba/remove-functions
  • juergba/remove-opts
  • juergba/require_reporter
  • juergba/retries
  • juergba/runner
  • juergba/runtime
  • juergba/security
  • juergba/skip-afterall
  • juergba/spec-glob
  • juergba/sprite
  • juergba/stable-CI
  • juergba/stale
  • juergba/transpilation
  • juergba/travis-smoke
  • juergba/ui-parallel
  • juergba/uncaught-bail
  • juergba/uncaught-double
  • juergba/uncaught-skip
  • juergba/uncaught-swallow
  • juergba/upgrade
  • juergba/wide-align
  • juergba/workerpool
  • juergba/workflow
  • juergba/workflow-filter
  • juergba/yargs
  • juergba/yargs-unparser
  • knip-5.61
  • last-working-deploy
  • lockfiles
  • main
  • maintainers
  • mark-wiemer-fix-5355-watch-mode
  • mark-wiemer/3104-third-party-reporters-docs
  • markdownlint
  • master
  • migrate-wiki-developer-guides
  • migrate-wiki-howto-guides
  • migrate-wiki-legacy-content
  • migrate-wiki-to-main-docs
  • migrate_assertion_libraries
  • migrate_tagging
  • minimatch-9
  • mochaGlobalTeardown
  • mochajs.org
  • mocks_stubs_and_spies
  • mollstam-reporter-tap-v13
  • more-pretty
  • multi-coverage
  • multi-coverage-old
  • munter/appveyor-speedup
  • munter/buble
  • munter/build-tweaks
  • munter/handle-unpkg-http-429
  • munter/lebab
  • munter/modernise-utils
  • munter/opencollective-avatar-fallbacks
  • munter/show-all-sponsors
  • munter/speed-up-docs-build
  • munter/sprite-opencollective-avatars
  • munter/sprite-opencollective-images
  • munter/transpilation
  • munter/travis-windows
  • netlify
  • netlify-config-file
  • new-sauce-launcher
  • new-site
  • next
  • next-site-docs-issue-link
  • no-cross-spawn
  • no-generated-file
  • no-makefile
  • no-shell-test
  • no-stale
  • no-unused-vars
  • node-10
  • node-18-to-20
  • node-esm-support
  • node-lts-22.11.0
  • npm-funding
  • npm-script-lint
  • outsider-action-growl
  • outsider-remove-skip-ci
  • outsider-test-purpose-internal-branch-pr
  • patch-1
  • perf-lookup-files
  • phantom-mac
  • picocolors
  • plroebuck-patch-1
  • plroebuck-patch-2
  • plroebuck/browser-template
  • plroebuck/checkGlobals-refactor
  • plroebuck/config-relpath
  • plroebuck/fix-default-glob
  • plroebuck/globals-patch
  • plroebuck/json-test-dolby
  • plroebuck/markdown-magic
  • plroebuck/patch-docs
  • plroebuck/refactor-lookupFiles
  • plroebuck/reorder-options-test
  • plroebuck/reporter-fileio
  • plroebuck/reporter-options
  • plroebuck/reporter-updates
  • plroebuck/runner-stacktrace-test-mods
  • plroebuck/runner-unit-rename-shadowed-vars
  • plroebuck/suppress-deprecation-for-coffeescript
  • plroebuck/test-invalid-tap-version
  • plroebuck/unloadFiles
  • plroebuck/update-js-yaml
  • plroebuck/update-node-ci
  • pr/2536
  • pr/2559
  • pr/2983
  • precache
  • prettier
  • prettier-formatting
  • print-helpful-error-in-worst-case
  • private-stats
  • refactor-forbid-pending-tests
  • refactor/markdown-magic
  • refine-issue-template
  • refs/tags/v8.2.0
  • refs/tags/v8.2.1
  • refs/tags/v8.3.0
  • refs/tags/v8.3.1
  • refs/tags/v8.3.2
  • refs/tags/v8.4.0
  • refs/tags/v9.0.0
  • refs/tags/v9.0.1
  • release-draft
  • release-please--branches--main--components--mocha
  • release-please--branches--v11.x--components--mocha
  • release-please-12-prerelease
  • release-please-config-stable
  • release/v5.0.x
  • release/v5.1.x
  • release/v5.2.x
  • release/v6.0.x
  • release/v6.2.x
  • release/v7.0.0-esm1
  • release/v7.0.x
  • release/v7.1.x
  • release/v7.2.x
  • remove-compilers-opt
  • remove-he
  • remove-jekyll
  • remove-log-symbols
  • remove-nanoiod
  • remove-netlify
  • remove-opts
  • remove-play
  • remove-strip-ansi
  • remove-touch
  • remove-uuid-dev-dependency
  • require-esm
  • require-esm-revert
  • require-esm-test
  • require-module-syntax-throw
  • revert-2649
  • revert-3101-ms-options
  • revert-3164-issue/3148
  • revert-3903-avi/upgrade-dependencies
  • revert-5319-build-new-site
  • revert-5402-remove-opts
  • revert-env-clearing
  • rscotchmer-issue-3783
  • sauce-launcher-url
  • shared_behaviours
  • simplify-publish
  • snyk-fix-33ea60a0
  • snyk-fix-b20f6635
  • snyk-fix-d4c0c301
  • snyk-fix-efeee4aa
  • stale
  • tab-error-messages
  • test-5361
  • test-compilers-lookup
  • test-esm-only
  • test-readable-stream-fix
  • test-v11
  • timeout-0
  • timing-tweaks
  • update-can-i-use
  • update-deps
  • updates
  • upgrade-eslint
  • upgrade-jekyll
  • upgrade-production-deps
  • use-builtin-allsettled
  • v11-fix-5494
  • v11.x
  • v3.3.0
  • v3.4.0
  • v3.4.1
  • v3.4.2
  • v3.5.0
  • v3.5.1
  • v3.5.3
  • v4.0.0
  • v4.0.1
  • v4.1.0
  • v5.0.0
  • v5.0.1
  • v5.0.2
  • v5.0.3
  • v5.0.4
  • v5.0.5
  • v5.1.0
  • v5.1.1
  • v5.2.0
  • v6.0.0-0
  • v6.0.0-1
  • v6.0.0-changelog
  • v6.0.1
  • v6.0.2
  • v6.1.0
  • v6.1.1
  • v6.1.2
  • v6.1.3
  • v6.1.4
  • v6.2.0
  • v6.2.1
  • v6.2.2
  • v6.2.3
  • v7.0.0
  • v7.0.0-esm1
  • v7.0.1
  • v7.0.2
  • v7.1.0
  • v7.1.1
  • v7.1.2
  • v7.2.0
  • v8.0.0
  • v8.0.1
  • v8.1.0
  • v8.1.1
  • v8.1.2
  • v8.1.3
  • vkarpov15/3135
  • vkarpov15/issue/3656
  • vkarpov15/issue/3689
  • voxpelli/allow-blank-issues
  • voxpelli/dependabot-github-actions
  • voxpelli/issue5124
  • warn-on-unclosed-tests
  • workerpool-9
  • yargs
  • yargs-17

14 Feb 2026 02:00AM UTC coverage: 94.208% (-0.2%) from 94.384%
22009096741

push

github

web-flow
fix(test): replace `wmic` usage with native Windows API (#5694)

* feat(test): replace `wmic` usage with native Windows API in v11.x branch

Signed-off-by: hainenber <dotronghai96@gmail.com>

* fix: add missing `child_process` import

Signed-off-by: hainenber <dotronghai96@gmail.com>

* chore: add assert to ensure wmic-less pid listing working as expected

Signed-off-by: hainenber <dotronghai96@gmail.com>

---------

Signed-off-by: hainenber <dotronghai96@gmail.com>

1460 of 1648 branches covered (88.59%)

3741 of 3971 relevant lines covered (94.21%)

10479.27 hits per line

Relevant lines Covered
Build:
Build:
3971 RELEVANT LINES 3741 COVERED LINES
10479.27 HITS PER LINE
Source Files on main
  • Tree
  • List 57
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
22009096741 v11.x fix(test): replace `wmic` usage with native Windows API (#5694) * feat(test): replace `wmic` usage with native Windows API in v11.x branch Signed-off-by: hainenber <dotronghai96@gmail.com> * fix: add missing `child_process` import Signed-off-b... push 14 Feb 2026 02:05AM UTC web-flow github
94.21
21778471344 feat/replace-wmic-for-mocha-v11-tests Merge 0a2e41a75 into aafe6fd8c Pull #5694 07 Feb 2026 10:19AM UTC web-flow github
94.21
21777513658 feat/replace-wmic-for-mocha-v11-tests Merge 8d5c19a51 into aafe6fd8c Pull #5694 07 Feb 2026 09:00AM UTC web-flow github
94.21
21777354909 feat/replace-wmic-for-mocha-v11-tests Merge 771b1b777 into aafe6fd8c Pull #5694 07 Feb 2026 08:46AM UTC web-flow github
94.21
21466064341 v11.x fix: make `describe().timeout()` work Also works around issues with unit tests. Windows no longer has wmic, so we skip those tests for now if they fail for that reason. push 29 Jan 2026 04:53AM UTC web-flow github
94.38
21409199040 Expresso Merge 60262b5f7 into 0696784dd Pull #5662 27 Jan 2026 06:36PM UTC web-flow github
94.38
21340233575 Expresso Merge 58134f3a6 into 0696784dd Pull #5662 25 Jan 2026 10:01PM UTC web-flow github
94.38
20786448184 v11.x chore: format all code (#5629) push 07 Jan 2026 03:28PM UTC web-flow github
94.38
20786434832 v11.x chore: remove Netlify (#5630) push 07 Jan 2026 03:27PM UTC web-flow github
94.2
20735586584 remove-netlify Merge b42cfebf9 into 9a6a5db84 Pull #5630 06 Jan 2026 02:15AM UTC web-flow github
94.38
See All Builds (7497)
  • Repo on GitHub
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