- fix: add
--uioption support
- new:
mocha=7is supported - fix:
--fileoption is not supported (#222) - fix: security warnings
- trivial: local development Node.JS version is updated to 13
- fix:
mocha-parallel-testsno longer reequire implicittslibdependency (#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-testsTypescript code and Javascript tests are now linted completely byeslint(#242) - chore:
mocha-parallel-testsare now also executed in OSX via Travis CI
- new:
mocha-parallel-testsnow 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-optionsdoesn't work with mocha@6 (#202) - fix: npm install audio warnings because of the outdated dependencies
- new:
mocha=6is supported (#217) - fix:
--retriesthrows an unhandled exception when test cases are defined in a loop (#194) - fix:
-galias for--grepis not supported (#203) - fix:
--full-traceoption is not supported (#202) - fix:
--exitoption leaves no trace for some asynchronously running tests (#202) - remove:
cryptolibrary usage - linting is all done by
eslintnow.
- fix:
--retrieswith 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:
--retriesand--bailoption conflict with each other causingmohcha-parallel-testsown 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:
--exitoption was not working as expected (#146) - fix: wrong assertion error when
--retriesoption is used and all retries fail (#143) - fix: events order is not following
mochastyle. This fixesmochawesomereporter behaviour (#113) mocha-allure-reporteris 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").defaultif you're using CommonJS modules - breaking change:
--retryis not supported anymore:mocha-parallel-testsmain target is to be 100%-compliant withmochain 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-paralleloption isos.cpus().lengthby 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:
--delayoption is now supported for each subprocess - new:
--retriesoption is now supported for each subprocess - new: supported peerDependencies versions of
mochaare not 3, 4 and 5 - new: all tests are now executed against all supported mocha versions
- new:
mocha-parallel-testsinstall 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-timeoutsoption (#120)
- fix: support only latest (3.x)
mochaversions (#98) - fix: support
reporter.done()callback for all external reporters (mochawesomefor example) in both CLI and node.js API (#113)
- fix: do not fail if no target is set and
--recursiveoption is used (#94)
- fix: add support for
xdescribe,xcontext,xspecify,xitandit.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-testsis executed with--retryoption, only this failed section is re-executed (#77)
- fix:
--no-exitCLI option is supported (#85)
- fix: pwd-based reporters (located somewhere inside your repo) are supported (#75)
- fix:
tapand other reporters which use mocha'srunnerobject are supported (#78) - fix:
mocha-jenkins-reporteris supported (#81)
- fix:
selenium-webdriverissue with number of tests is fixed (#69). Currently allselenium-webdrivertests should work as expected.
- fix:
--require'd files are working as expected together with--compilersoption (#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:
mochais now in peerDependencies part ofmocha-parallel-testswhich means that you need to add bothmochaandmocha-parallel-testsin 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
--compilersoption (#53).0.4.xlacked support for JavaScript files. - fix: support mocha
--requireoption - 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
--compilersoption introduced - fix: tests using
--max-parallel=1run without errors (#34) - fix: reporters with own options like
xunitdon't produce errors now (#31) - fix:
--retryoption is now working for mocha test hooks (before/after/etc) mocha-parallel-testscode 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
mochaversion 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|errors 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-paralleloption 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 😃