8000 Fix assertion failure hooks invocation when scenario fail-fast enabled by valfirst · Pull Request #2095 · vividus-framework/vividus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix assertion failure hooks invocation when scenario fail-fast enabled #2095

New issue

Have a question about this project? Sign up for a free GitHub account to 8000 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

Conversation

valfirst
Copy link
Collaborator

Fixes #1989

The order of event subscribers invocation for Guava EventBus is not determined,
that fact blocks the ability to put fail-fast mechanism to assertion failure event handler:
if fail-fast event handler doesn't go last, the rest assertion failure event handlers (which
may be adding application source code etc.) will be invoked in improper system state: the
assertion verification is finished, the step is closed in the report.

@codecov
Copy link
codecov bot commented Oct 21, 2021

Codecov Report

Merging #2095 (1e67f8d) into master (1e10666) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2095      +/-   ##
============================================
+ Coverage     96.15%   96.18%   +0.03%     
- Complexity     5335     5345      +10     
============================================
  Files           755      756       +1     
  Lines         15239    15246       +7     
  Branches       1026     1028       +2     
============================================
+ Hits          14653    14665      +12     
+ Misses          453      450       -3     
+ Partials        133      131       -2     
Impacted Files Coverage Δ
...c/main/java/org/vividus/softassert/SoftAssert.java 90.14% <100.00%> (+4.11%) ⬆️
...rg/vividus/softassert/event/FailTestFastEvent.java 100.00% <100.00%> (ø)
...n/java/org/vividus/softassert/FailFastManager.java 100.00% <100.00%> (ø)
...a/org/vividus/azure/util/InnersJacksonAdapter.java 100.00% <0.00%> (ø)

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 1e10666...1e67f8d. Read the comment docs.

@valfirst valfirst force-pushed the fix-assertion-failure-hooks-invocation-when-scenario-fail-fast-enabled branch 3 times, most recently from f8c696b to 0a925d9 Compare October 22, 2021 07:22
The order of event subscribers invocation for Guava EventBus is not determined,
that fact blocks the ability to put fail-fast mechanism to assertion failure event handler:
if fail-fast event handler doesn't go last, the rest assertion failure event handlers (which
may be adding application source code etc.) will be invoked in improper system state: the
assertion verification is finished, the step is closed in the report.
@valfirst valfirst force-pushed the fix-assertion-failure-hooks-invocation-when-scenario-fail-fast-enabled branch from 0a925d9 to 1e67f8d Compare October 22, 2021 08:29
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@valfirst valfirst merged commit 766dce3 into master Oct 22, 2021
@valfirst valfirst deleted the fix-assertion-failure-hooks-invocation-when-scenario-fail-fast-enabled branch October 22, 2021 09:59
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.

With fail-fast enabled no app source attached in report
3 participants
0