- fix: add
--ui
option support
- new:
mocha=7
is supported - fix:
--file
option is not supported (#222) - fix: security warnings
- trivial: local development Node.JS version is updated to 13
- fix:
mocha-parallel-tests
no longer reequire implicittslib
dependency (#262)
- fix: TTY-related issue where users of Node.JS>=12 could see an error "TypeError: tty.getWindowSize is not a function" (#247)
- chore: last tslint comments removed from the code,
mocha-parallel-tests
Typescript code and Javascript tests are now linted completely byeslint
(#242) - chore:
mocha-parallel-tests
are now also executed in OSX via Travis CI
- new:
mocha-parallel-tests
now forks light threads instead of fully fledged Node.JS processes in environments where worker_threads API is supported. Usually it's Node.JS >= 12. This results in a faster tests processing and less memory consumption.
- fix: programmatic API doesn't emit particular suites when multiple suites share the name (#237)
- fix:
--reporter-options
doesn't work with mocha@6 (#202) - fix: npm install audio warnings because of the outdated dependencies
- new:
mocha=6
is supported (#217) - fix:
--retries
throws an unhandled exception when test cases are defined in a loop (#194) - fix:
-g
alias for--grep
is not supported (#203) - fix:
--full-trace
option is not supported (#202) - fix:
--exit
option leaves no trace for some asynchronously running tests (#202) - remove:
crypto
library usage - linting is all done by
eslint
now.
- fix:
--retries
with hooks throws an unhandled exception (#194)
- fix: subprocess processing should not stop when unhandled rejection occurs (#173)
- fix: subprocess processing should not stop when uncaught exception occurs (#172)
- added a list of limitations that you can hit when you launch your tests with
mocha-parallel-tests
- fix: subprocess stderr is not shown if the subprocess crashes before sending the "start" event (#158)
- fix:
--retries
and--bail
option conflict with each other causingmohcha-parallel-tests
own assertion error (#163)
- fix: reporter doesn't show anything until all tests are finished (#145)
- fix: wrong assertion error when subprocess crashes before sending test results (#147)
- fix:
--exit
option was not working as expected (#146) - fix: wrong assertion error when
--retries
option is used and all retries fail (#143) - fix: events order is not following
mocha
style. This fixesmochawesome
reporter behaviour (#113) mocha-allure-reporter
is supported (#80)
v2 is a completely new version of mocha-parallel-tests
rewritten in TypeScript from scratch. Its main focus is to simplify parallel run of mocha tests: while previously they were executed in one single process now each file is executed in a separate process.
Some of the main changes are:
- breaking change: each file is now executed in a separate process
- breaking change: minimum supported node version is 8 because it's current LTS and because of performance reasons
- breaking change: main exported file should now be imported as
require("mocha-parallel-tests").default
if you're using CommonJS modules - breaking change:
--retry
is not supported anymore:mocha-parallel-tests
main target is to be 100%-compliant withmocha
in terms of API and to not introduce its own options and APIs other than--max-parallel
- breaking change: reporter output/stats now contains one more level for each file
- change:
--max-parallel
option isos.cpus().length
by default. You can also specify it manually or set it to 0 which means "immediately launch as many processes as the number of files" - new:
--delay
option is now supported for each subprocess - new:
--retries
option is now supported for each subprocess - new: supported peerDependencies versions of
mocha
are not 3, 4 and 5 - new: all tests are now executed against all supported mocha versions
- new:
mocha-parallel-tests
install should work fine on windows - new: TypeScript definitions are now provided in package.json
Read more about new release here: https://github.com/mocha-parallel/mocha-parallel-tests/wiki/v2-release-notes
- fix: support
--no-timeouts
option (#120)
- fix: support only latest (3.x)
mocha
versions (#98) - fix: support
reporter.done()
callback for all external reporters (mochawesome
for example) in both CLI and node.js API (#113)
- fix: do not fail if no target is set and
--recursive
option is used (#94)
- fix: add support for
xdescribe
,xcontext
,xspecify
,xit
andit.skip
(#102) - most of packages dependencies upgrade (minor changes)
- fix: tests with binary dependencies can now be used with
mocha-parallel-tests
(#100)
- fix: if file contains multiple
describe()
sections in it, one of it fails andmocha-parallel-tests
is executed with--retry
option, only this failed section is re-executed (#77)
- fix:
--no-exit
CLI option is supported (#85)
- fix: pwd-based reporters (located somewhere inside your repo) are supported (#75)
- fix:
tap
and other reporters which use mocha'srunner
object are supported (#78) - fix:
mocha-jenkins-reporter
is supported (#81)
- fix:
selenium-webdriver
issue with number of tests is fixed (#69). Currently allselenium-webdriver
tests should work as expected.
- fix:
--require
'd files are working as expected together with--compilers
option (#63)
- new: using mocha-parallel-tests programmatically is now supported. You can also pass own mocha-parallel-tests options by calling
setOwnOptions({maxParallel, retry})
method of mocha-parallel-tests instance. You should call it beforerun()
.
- breaking change:
mocha
is now in peerDependencies part ofmocha-parallel-tests
which means that you need to add bothmocha
andmocha-parallel-tests
in your project's package.json. This also means that you can run both of your tests: written for mocha@2.x and mocha@3.x (#55) - fix: support for only() and skip() helpers (#59)
- fix: main package file now refers to CommonJS file, not ES6 module.
Version number is 1.1.0 because first mocha-parallel-tests
releases had 1.0.x versioning scheme.
- new: mutiple test suites (describe) inside one file run in parallel
- fix: support mocha
--compilers
option (#53).0.4.x
lacked support for JavaScript files. - fix: support mocha
--require
option - fix: support mocha.opts config file (#44)
- fix: global hooks stored inside separate files are now executed if target is directory (#41)
- fix: global hooks stored inside separate files are now executed (#39)
- new: support for mocha
--compilers
option introduced - fix: tests using
--max-parallel=1
run without errors (#34) - fix: reporters with own options like
xunit
don't produce errors now (#31) - fix:
--retry
option is now working for mocha test hooks (before/after/etc) mocha-parallel-tests
code is now ES2015-compatible
- fix: runner displays right tests execution time now (#24)
- fix: exit codes are now the same as in original mocha runner (#27)
- bump
mocha
version to 2.4.5. Check its changelog for more info. Previous version was 2.3.4.
- new:
--retry <num>
to set number of retries for failing tests (0 by default)
- fix:
console.log|error
s from tests do not cross with each other. Instead they are waiting until proper test starts executing 😃 - fix: support stack trace of errors
- fix: support for incoming array of files
- fix:
--max-parallel
option introduced bug when some of the files were not tests: not all tests could run - new:
--max-parallel <num>
to set max number of running parallel tests
- fix emits of end events
- tests for package
- changed readme and refactoring
- reporter control added
- first release 😃