-
-
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 VCS attribute to test-run-started
- Loading branch information
Showing
3 changed files
with
28 additions
and
2 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 |
---|---|---|
@@ -1,5 +1,11 @@ | ||
{ | ||
"type":"test-run-started", | ||
"workingDirectory":"/Users/matt/projects/cucumber-ruby", | ||
"timestamp":1489683458 | ||
"timestamp":1489683458, | ||
"vcs": { | ||
"git": { | ||
"head": "be6683b9004a5785ca9b51776b98694dfe406fb6", | ||
"diff": "diff --git a/event-protocol/schemas/test-run-started.json b/event-protocol/schemas/test-run-started.json\nindex 6fa0e39..48efe9a 100644\n--- a/event-protocol/schemas/test-run-started.json\n+++ b/event-protocol/schemas/test-run-started.json\n@@ -12,7 +12,27 @@\n },\n \"timestamp\": {\n \"type\": \"number\"\n+ },\n+ \"vcs\": {\n+ \"type\": \"object\",\n+ \"properties\": {\n+ \"git\": {\n+ \"type\": \"object\",\n+ \"properties\": {\n+ \"head\": {\n+ \"type\": \"string\"\n+ },\n+ \"diff\": {\n+ \"type\": \"string\"\n+ }\n+ }\n+ }\n+ }\n }\n },\n+ \"required\": [\n+ \"type\",\n+ \"timestamp\"\n+ ],\n \"additionalProperties\": false\n }\"" | ||
} | ||
} | ||
} |
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
7b94745
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think maybe vcs info should be a separate event. Could be interesting to know for a "gherkin lint" pass too, but in that case there is no "test run"
7b94745
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same goes for
workingDirectory
. Maybe those two could be grouped in anenvironment
event?WDYT?