-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add listener and event handler registration (close #130)
This introduces registerListener and registerEventHandler to the support code helper. Those two methods let clients register custom listeners for AST events. Relates to #91.
- Loading branch information
Showing
9 changed files
with
469 additions
and
231 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
exports['BeforeFeatures'] = 'BeforeFeatures'; | ||
exports['BeforeFeature'] = 'BeforeFeature'; | ||
exports['Background'] = 'Background'; | ||
exports['BeforeScenario'] = 'BeforeScenario'; | ||
exports['BeforeStep'] = 'BeforeStep'; | ||
exports['StepResult'] = 'StepResult'; | ||
exports['AfterStep'] = 'AfterStep'; | ||
exports['AfterScenario'] = 'AfterScenario'; | ||
exports['AfterFeature'] = 'AfterFeature'; | ||
exports['AfterFeatures'] = 'AfterFeatures'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,8 @@ | |
"Kim, Jang-hwan <[email protected]>", | ||
"Michael Zedeler <[email protected]>", | ||
"Tom V <[email protected]>", | ||
"David Godfrey <[email protected]>" | ||
"David Godfrey <[email protected]>", | ||
"Paul Shannon (http://devpaul.com)" | ||
], | ||
"repository": { | ||
"type": "git", | ||
|
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
require('../../support/spec_helper'); | ||
|
||
describe('Cucumber.Listener.Events', function () { | ||
var Cucumber = requireLib('cucumber'); | ||
var events = Cucumber.Listener.Events; | ||
|
||
describe('construction', function () { | ||
it("contains a list of event names", function () { | ||
for(var name in events) { | ||
if(events.hasOwnProperty(name)) { | ||
expect(events[name]).toEqual(name); | ||
} | ||
} | ||
}); | ||
|
||
it("is defined", function() { | ||
expect(events).toBeDefined(); | ||
}); | ||
}); | ||
}); |
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
Oops, something went wrong.