Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Mocha tests re-run after coverage report is generated. #160

Closed
threehams opened this issue May 12, 2016 · 1 comment
Closed

Mocha tests re-run after coverage report is generated. #160

threehams opened this issue May 12, 2016 · 1 comment
Labels

Comments

@threehams
Copy link
Collaborator

Running tests in watch mode (the default) runs a second process which generates a coverage report in the background. Unfortunately, once it finishes, the watcher picks up the changes to the .js files in coverage/ and re-runs the tests. It doesn't cost much in time, but it's a lot of unnecessary and confusing console output.

Mocha's watch is not configurable, and will eventually be deprecated. However, when running Mocha in a spawned process, it is by far the quickest way to re-run tests in a transpiled project.

One possible fix is to have an intermediate script which requires the mochaTestHelper.js file, watches only certain directories, and runs Mocha programatically - which should retain the speed. This is more complicated, and will require rewriting some things we currently get from Mocha for free. However, it may simplify some of the test.js command code.

@threehams threehams added the bug label May 12, 2016
@toddw
Copy link
Contributor

toddw commented Jan 12, 2017

Closing this in favor of: #406

@toddw toddw closed this as completed Jan 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants