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

fix(js): fail check if an error is thrown #1137

Merged
merged 1 commit into from
Sep 4, 2019

Conversation

imiric
Copy link
Contributor

@imiric imiric commented Sep 2, 2019

This fix ensures the check metric is failed if an error occurs inside the check function, while still allowing an unhandled error to be thrown and interrupt the test, keeping backwards compatibility.

Closes #1054

@imiric imiric requested review from mstoykov, na-- and cuonglm September 2, 2019 11:35
@codecov-io
Copy link

codecov-io commented Sep 2, 2019

Codecov Report

Merging #1137 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1137      +/-   ##
==========================================
+ Coverage   73.58%   73.59%   +0.01%     
==========================================
  Files         144      144              
  Lines       10527    10531       +4     
==========================================
+ Hits         7746     7750       +4     
  Misses       2323     2323              
  Partials      458      458
Impacted Files Coverage Δ
js/modules/k6/k6.go 91.48% <100%> (+0.37%) ⬆️

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 d385166...35043fd. Read the comment docs.

@imiric imiric force-pushed the fix/1054-fail-check-on-exception branch from c3fc860 to af0b23d Compare September 3, 2019 07:55
js/modules/k6/k6.go Outdated Show resolved Hide resolved
js/modules/k6/k6.go Outdated Show resolved Hide resolved
js/modules/k6/k6.go Show resolved Hide resolved
@na-- na-- added this to the v0.26.0 milestone Sep 3, 2019
na--
na-- previously approved these changes Sep 3, 2019
Copy link
Member

@na-- na-- left a comment

Choose a reason for hiding this comment

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

LGTM besides the minor comment nitpick, and a sentence or two in the PR description that's suitable for the release notes 😉

@imiric imiric force-pushed the fix/1054-fail-check-on-exception branch from af0b23d to 35043fd Compare September 3, 2019 16:07
@imiric imiric requested review from na-- and cuonglm September 3, 2019 16:18
Copy link
Contributor

@mstoykov mstoykov left a comment

Choose a reason for hiding this comment

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

LGTM

@imiric imiric merged commit 4e6a86d into master Sep 4, 2019
@imiric imiric deleted the fix/1054-fail-check-on-exception branch September 4, 2019 13:58
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.

Checks should fail if an exception is thrown inside of them
5 participants