-
-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
event-protocol: Add events & schemas for test runs
- Loading branch information
Showing
19 changed files
with
391 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"type":"test-run-started", | ||
"workingDirectory":"/Users/matt/projects/cucumber-ruby", | ||
"timestamp":1489683458 | ||
} |
29 changes: 29 additions & 0 deletions
29
event-protocol/examples/events/006_test-case-prepared.json
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,29 @@ | ||
{ | ||
"type": "test-case-prepared", | ||
"sourceLocation": { | ||
"uri": "features/passing.feature", | ||
"line": 2 | ||
}, | ||
"steps": [ | ||
{ | ||
"actionLocation": { | ||
"uri": "/Users/matt/projects/cucumber-ruby/lib/cucumber/filters/prepare_world.rb", | ||
"line": 28 | ||
}, | ||
"sourceLocation": { | ||
"uri": "/Users/matt/projects/cucumber-ruby/lib/cucumber/filters/prepare_world.rb", | ||
"line": 28 | ||
} | ||
}, | ||
{ | ||
"actionLocation": { | ||
"uri": "features/passing.feature", | ||
"line": 3 | ||
}, | ||
"sourceLocation": { | ||
"uri": "features/passing.feature", | ||
"line": 3 | ||
} | ||
} | ||
] | ||
} |
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,7 @@ | ||
{ | ||
"type": "test-case-started", | ||
"sourceLocation": { | ||
"uri": "features/passing.feature", | ||
"line": 2 | ||
} | ||
} |
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 @@ | ||
{ | ||
"type": "test-step-started", | ||
"testCase": { | ||
"sourceLocation": { | ||
"uri": "features/passing.feature", | ||
"line": 2 | ||
} | ||
}, | ||
"index": 0 | ||
} |
14 changes: 14 additions & 0 deletions
14
event-protocol/examples/events/009_test-step-finished.json
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,14 @@ | ||
{ | ||
"type": "test-step-finished", | ||
"testCase": { | ||
"sourceLocation": { | ||
"uri": "features/passing.feature", | ||
"line": 2 | ||
} | ||
}, | ||
"index": 0, | ||
"result": { | ||
"status": "passed", | ||
"duration": 3000 | ||
} | ||
} |
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 @@ | ||
{ | ||
"type": "test-step-started", | ||
"testCase": { | ||
"sourceLocation": { | ||
"uri": "features/passing.feature", | ||
"line": 2 | ||
} | ||
}, | ||
"index": 1 | ||
} |
20 changes: 20 additions & 0 deletions
20
event-protocol/examples/events/011_test-step-finished.json
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 @@ | ||
{ | ||
"type": "test-step-finished", | ||
"testCase": { | ||
"sourceLocation": { | ||
"uri": "features/passing.feature", | ||
"line": 2 | ||
} | ||
}, | ||
"index": 1, | ||
"result": { | ||
"status": "undefined", | ||
"exception": { | ||
"message": "Undefined step: \"this step passes\"", | ||
"type": "Cucumber::Core::Test::Result::Undefined", | ||
"stackTrace": [ | ||
"features/passing.feature:3:in `Given this step passes'" | ||
] | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
event-protocol/examples/events/012_test-case-finished.json
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,18 @@ | ||
{ | ||
"type": "test-case-finished", | ||
"sourceLocation": { | ||
"uri": "features/passing.feature", | ||
"line": 2 | ||
}, | ||
"result": { | ||
"status": "undefined", | ||
"duration": 13163000, | ||
"exception": { | ||
"message": "Undefined step: \"this step passes\"", | ||
"type": "Cucumber::Core::Test::Result::Undefined", | ||
"stackTrace": [ | ||
"features/passing.feature:3:in `Given this step passes'" | ||
] | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"id": "https://raw.github.com/cucumber/cucumber/master/event-protocol/schemas/test-case-finished.json#", | ||
"title": "test-case-finished", | ||
"description": "A test case has finished executing", | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string" | ||
}, | ||
"sourceLocation": { | ||
"$ref": "defs.json#/location" | ||
}, | ||
"result": { | ||
"$ref": "defs.json#/result" | ||
} | ||
}, | ||
"required": [ "sourceLocation", "result" ], | ||
"additionalProperties": false | ||
} |
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,32 @@ | ||
{ | ||
"id": "https://raw.github.com/cucumber/cucumber/master/event-protocol/schemas/test-case-prepared.json#", | ||
"title": "test-case-prepared", | ||
"description": "Describes a test case that is about to be run", | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string" | ||
}, | ||
"sourceLocation": { | ||
"$ref": "defs.json#/location" | ||
}, | ||
"steps": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"sourceLocation": { | ||
"$ref": "defs.json#/location" | ||
}, | ||
"actionLocation": { | ||
"$ref": "defs.json#/location" | ||
} | ||
} | ||
}, | ||
"required": [ "sourceLocation", "actionLocation" ], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"required": [ "sourceLocation", "steps" ], | ||
"additionalProperties": false | ||
} |
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,16 @@ | ||
{ | ||
"id": "https://raw.github.com/cucumber/cucumber/master/event-protocol/schemas/test-case-started.json#", | ||
"title": "test-case-started", | ||
"description": "Signals the start of executing a test case", | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string" | ||
}, | ||
"sourceLocation": { | ||
"$ref": "defs.json#/location" | ||
} | ||
}, | ||
"required": [ "sourceLocation" ], | ||
"additionalProperties": false | ||
} |
Oops, something went wrong.