Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always write report, also in case of errors found #43

Merged
merged 5 commits into from
Feb 20, 2018

Conversation

prantlf
Copy link
Contributor

@prantlf prantlf commented Feb 20, 2018

Continues to attempt fixing #41, builds on #42.

Reject the main promise with both error and report to allow processing of both in case of an error.

Allow writing the report by promise value { errorMessage, reportLogs }. This is a breaking change; earlier there was only errorMessage as the value.

Force not only the error exit code suppression, but also writing the
report, if the source files contained errors.
Externally documented interface should use "reportLocation", while the
internal reporter generator wrapper uses "location".

This prevented the report generation too, after suppressing the exit on
error by ssetting force=true in options.

This will need a fix in Grunt and Gulp tasks too, which used an
undocumented interface.
Allow writing the report by promise value { errorMessage, reportLogs }.
This is a breaking change; earlier there was only errorMessage as the value.
* Move the test file for an error case out of the directory with the
  files for the success case.
* Finish the test run in the faling promise callback too.
@codecov-io
Copy link

codecov-io commented Feb 20, 2018

Codecov Report

Merging #43 into master will decrease coverage by 0.16%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #43      +/-   ##
=========================================
- Coverage   96.87%   96.7%   -0.17%     
=========================================
  Files          22      30       +8     
  Lines         352     547     +195     
=========================================
+ Hits          341     529     +188     
- Misses         11      18       +7
Impacted Files Coverage Δ
src/app/index.js 100% <100%> (ø)
src/reports/index.js 100% <100%> (ø)
src/messages/buildMessage.js 100% <0%> (ø)
src/helpers/index.js 100% <0%> (ø)
src/helpers/buildMessage.js 56.25% <0%> (ø)
src/logger/index.js 100% <0%> (ø)
src/messages/index.js 100% <0%> (ø)
src/runners/index.js 100% <0%> (ø)

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 541e884...97d6373. Read the comment docs.

@yargalot yargalot merged commit e1330f8 into yargalot:master Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants