Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Ensure test --watch continues watching after test failure #64

Merged
merged 1 commit into from
Dec 8, 2017

Conversation

lhorie
Copy link
Contributor

@lhorie lhorie commented Dec 8, 2017

Resolves #51

@@ -64,7 +64,9 @@ exports.run = async function({dir = '.', cover, watch, skipBuild}) {
await runTests();

if (watch) {
compiler.on('done', runTests);
compiler.on('done', () => {
runTests().catch(() => {}); // ignore error, since test output is already actionable enough

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we log something here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think logging would make the test output unnecessarily noisy. The stack trace is already part of the test report

@codecov
Copy link

codecov bot commented Dec 8, 2017

Codecov Report

Merging #64 into master will decrease coverage by 0.05%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #64      +/-   ##
==========================================
- Coverage   68.96%   68.91%   -0.06%     
==========================================
  Files          64       64              
  Lines        1376     1377       +1     
  Branches      299      299              
==========================================
  Hits          949      949              
- Misses        373      374       +1     
  Partials       54       54
Impacted Files Coverage Δ
commands/test.js 19.23% <0%> (-0.77%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0289aea...6d2e87e. Read the comment docs.

@lhorie
Copy link
Contributor Author

lhorie commented Dec 8, 2017

!merge

@old-fusion-bot old-fusion-bot bot merged commit 2c0f6c7 into master Dec 8, 2017
@lhorie lhorie deleted the test-watch-failure branch January 4, 2018 20:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants