-
-
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 support for pending steps (close #18)
- This marks the third core.feature scenario passing - The progress formatter is also ready for pending steps
- Loading branch information
Showing
17 changed files
with
632 additions
and
164 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
var Runtime = {}; | ||
Runtime.StepResult = require('./runtime/step_result'); | ||
module.exports = Runtime; | ||
Runtime.PendingStepException = require('./runtime/pending_step_exception'); | ||
Runtime.SuccessfulStepResult = require('./runtime/successful_step_result'); | ||
Runtime.PendingStepResult = require('./runtime/pending_step_result'); | ||
Runtime.FailedStepResult = require('./runtime/failed_step_result'); | ||
module.exports = Runtime; |
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,9 @@ | ||
var FailedStepResult = function(status) { | ||
var self = { | ||
isSuccessful: function isSuccessful() { return false; }, | ||
isPending: function isPending() { return false; }, | ||
isFailed: function isFailed() { return true; } | ||
}; | ||
return self; | ||
}; | ||
module.exports = FailedStepResult; |
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,5 @@ | ||
var PendingStepException = function PendingStepException(reason) { | ||
if (!(this instanceof PendingStepException)) | ||
return new PendingStepException(reason); | ||
}; | ||
module.exports = PendingStepException; |
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,9 @@ | ||
var PendingStepResult = function(status) { | ||
var self = { | ||
isSuccessful: function isSuccessful() { return false; }, | ||
isPending: function isPending() { return true; }, | ||
isFailed: function isFailed() { return false; } | ||
}; | ||
return self; | ||
}; | ||
module.exports = PendingStepResult; |
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
var SuccessfulStepResult = function(status) { | ||
var self = { | ||
isSuccessful: function isSuccessful() { return true; }, | ||
isPending: function isPending() { return false; }, | ||
isFailed: function isFailed() { return false; } | ||
}; | ||
return self; | ||
}; | ||
module.exports = SuccessfulStepResult; |
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.