Page MenuHomePhabricator

[CashTab] Only show console messages if test fails
ClosedPublic

Authored by alcipir on Dec 6 2020, 08:03.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC81333d8c462c: [CashTab] Only show console messages if test fails
Summary

Adds a script to show console messages only if the tests fails. Currently when running our tests, there is a lot of noise from console even if everything is fine and the test passes.
Also adds CI=true flag to npm run test:coverage script, thus making watchMode false. This is required for further CI usage.

Test Plan

npm install && npm run test:coverage. Should not show any console messages unless a test fails. Should also not be in watchMode.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.