-
Notifications
You must be signed in to change notification settings - Fork 481
Add BlockListener support... #1575
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
Merged
leonard84
merged 27 commits into
spockframework:master
from
leonard84:add-block-listener-support
Dec 27, 2024
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
e95a3db
Add BlockListener support...
leonard84 de2bff0
Expose IErrorContext in ErrorInfo...
leonard84 d77ab6c
Clear current block on exit from feature method
leonard84 a231f04
Update AST tests with block listeners
leonard84 3407a1a
Add blockExited to IBlockListener
leonard84 df354af
Add interaction example AstSpec
leonard84 ffe6edc
Fix block listeners for interactions
leonard84 7f68336
Implement Review Feedback
leonard84 f0e69a7
Fix test in RunListenerSpec
leonard84 802b84e
Implement Review comments
leonard84 5a5cdfd
Move current block clearing to PlatformSpecRunner
leonard84 146689f
Move DataProviders expected ast to snapshots
leonard84 fa4811b
Restore failed block when cleanup runs
leonard84 1f6aa2d
Implement Review comments re SpecificationContext
leonard84 bbba7f5
Implement Review comments re ErrorContext/Info
leonard84 49dfa26
Revert all changes to DeepBlockRewriter
leonard84 4f4e4c5
Implement Review Comments
leonard84 3f8f22a
Use BlockInfo from SpecInfo via an index lookup
leonard84 c6d4b01
Polishing
leonard84 acc8319
Apply review comments
leonard84 cf8b43a
Add minimal documentation
leonard84 ac96ff4
Apply review comments
leonard84 379aefc
Apply review comments 2
leonard84 a6bce08
Apply review comments 3
leonard84 a04dfae
Update remaining snapshots
leonard84 19e2dc2
Implement review feedback
leonard84 a8347ad
Merge branch 'master' into add-block-listener-support
leonard84 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
spock-core/src/main/java/org/spockframework/compiler/SpockNames.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,12 @@ | ||
| package org.spockframework.compiler; | ||
|
|
||
| public class SpockNames { | ||
| public static final String VALUE_RECORDER = "$spock_valueRecorder"; | ||
| public static final String ERROR_COLLECTOR = "$spock_errorCollector"; | ||
| public static final String FAILED_BLOCK = "$spock_failedBlock"; | ||
| public static final String OLD_VALUE = "$spock_oldValue"; | ||
| public static final String SPOCK_EX = "$spock_ex"; | ||
| public static final String SPOCK_FEATURE_THROWABLE = "$spock_feature_throwable"; | ||
| public static final String SPOCK_TMP_THROWABLE = "$spock_tmp_throwable"; | ||
| public static final String SPOCK_VALUE = "$spock_value"; | ||
| public static final String VALUE_RECORDER = "$spock_valueRecorder"; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.