-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add BlockListener support... (#1575)
This feature allows extension authors to register an `IBlockListener` for a feature to observe the execution of a feature in more detail. This surfaces some of Spock's idiosyncrasies, for example interaction assertions are actually setup right before entering the preceding `when`-block as well as being evaluated on leaving the `when`-block before actually entering the `then`-block. The only valid block description is a constant `String`, although some users mistakenly try to use a dynamic `GString`. Using anything other than a `String`, will be treated as a separate statement and thus ignored. Expose `IErrorContext` in `ErrorInfo` to provide more information in `IRunListener.error(ErrorInfo)` about where the error happened. fixes #538 fixes #111
- Loading branch information
Showing
57 changed files
with
1,360 additions
and
125 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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.