embark/packages/plugins/mocha-tests
Pascal Precht 765e889121 fix(@embark/coverage): ensure handlers for 'tests:finished' are run as actions
There was a race condition in which the coverage module tried to read a generated
coverage report before it was actually generated.
The issue was that the coverage generation was done on Embark's `tests:finished` event
in a fire and forget manner via `emit('tests:finished')` which doesn't
ensure control flow.
This commit changes it to use `runActionsForEvent('tests:finished')` instead and also
registers the handler for coverage report generation as action via `registerActionForEvent()`.

This ensures that those actions are run first, before the code moves on with other
operations that might rely on the result of any of those actions.
2019-12-20 16:11:48 -05:00
..
src fix(@embark/coverage): ensure handlers for 'tests:finished' are run as actions 2019-12-20 16:11:48 -05:00
.npmrc chore(@embark/): move more packages to their logical folders, remove embark- prefix (#1882) 2019-09-07 11:27:08 -04:00
CHANGELOG.md chore(release): 5.0.0-alpha.8 2019-12-19 14:14:23 -05:00
README.md build: tidy up the monorepo in prep for v5.0.0-alpha.0 2019-10-01 13:29:53 -05:00
package.json build(deps): bump web3[-*] from 1.2.1 to 1.2.4 2019-12-20 08:35:48 -06:00
tsconfig.json build: implement collective typecheck 2019-12-13 13:59:47 -05:00

README.md

embark-mocha-test-runner

Mocha Test Runner

Visit embark.status.im to get started with Embark.