Scoop-Tech / scpx-wallet

Scoop Wallet: Core open-source, multi-asset & cross-platform CLI
https://scoop.tech
GNU Affero General Public License v3.0
18 stars 7 forks source link

Increase test coverage #22

Open 7-of-9 opened 5 years ago

7-of-9 commented 5 years ago

Initial focus is on e2e integration tests; note below on limitations of jest --coverage of worker_threads.

7-of-9 commented 5 years ago

Jest is not producing coverage data for source files referenced indirectly by worker thread invocation (i.e. by new Worker()... followed by postMessage to the worker thread, per the integration tests)

This config in package.json / "jest" causes the files not directly referenced with require() to be collected in ./coverage, but as they are not referenced directly by the tests, the coverage data is still zero. // "collectCoverageFrom": [ // "*/.{js,jsx}", // "!/node_modules/" // ]

https://github.com/codecov/codecov-node/issues/129