Skip to content

Commit

Permalink
Generating code from updated proto files | #165
Browse files Browse the repository at this point in the history
  • Loading branch information
kashishm committed Aug 2, 2016
1 parent 560ed8f commit 0b0e4cb
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 74 deletions.
2 changes: 1 addition & 1 deletion gauge-proto
Submodule gauge-proto updated 1 files
+16 −13 api_v2.proto
159 changes: 88 additions & 71 deletions gauge_messages/api_v2.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions reporter/reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ func (s *MySuite) TestSubscribeScenarioStart(c *C) {
SimpleConsoleOutput = true
event.InitRegistry()
sce := &gauge.Scenario{Heading: &gauge.Heading{Value: "My Scenario Heading"}}
sceHeading := "My scenario heading"
sceRes := result.NewScenarioResult(&gauge_messages.ProtoScenario{ScenarioHeading: &sceHeading})

ListenExecutionEvents()

event.Notify(event.NewExecutionEvent(event.ScenarioStart, sce, nil, 0, gauge_messages.ExecutionInfo{}))
event.Notify(event.NewExecutionEvent(event.ScenarioStart, sce, sceRes, 0, gauge_messages.ExecutionInfo{}))
c.Assert(dw.output, Equals, " ## My Scenario Heading\n")
}

Expand All @@ -74,10 +76,12 @@ func (s *MySuite) TestSubscribeScenarioStartWithDataTable(c *C) {
dataTable.AddHeaders([]string{"foo", "bar"})
dataTable.AddRowValues([]string{"one", "two"})
sce := &gauge.Scenario{Heading: &gauge.Heading{Value: "My Scenario Heading"}, DataTableRow: dataTable}
sceHeading := "My scenario heading"
sceRes := result.NewScenarioResult(&gauge_messages.ProtoScenario{ScenarioHeading: &sceHeading})

ListenExecutionEvents()

event.Notify(event.NewExecutionEvent(event.ScenarioStart, sce, nil, 0, gauge_messages.ExecutionInfo{}))
event.Notify(event.NewExecutionEvent(event.ScenarioStart, sce, sceRes, 0, gauge_messages.ExecutionInfo{}))
table := `
|foo|bar|
|---|---|
Expand Down

0 comments on commit 0b0e4cb

Please sign in to comment.