Class: Gurke::Reporters::TeamCityReporter
Overview
The TeamCityReporter prints features, scenarios and steps in a format parseable by TeamCity CI.
Constant Summary
Gurke::Reporter::CALLBACKS
Instance Attribute Summary
#io
Instance Method Summary
collapse
#after_features, #after_step, #before_step, #end_background, #initialize, #start_background
#after_features, #after_step, #before_features, #before_step, #end_background, #end_feature, #end_features, #end_scenario, #end_step, #start_background, #start_feature, #start_features, #start_scenario, #start_step
Instance Method Details
#after_feature(feature) ⇒ Object
36
37
38
39
40
|
# File 'lib/gurke/reporters/team_city_reporter.rb', line 36
def after_feature(feature)
publish :testSuiteFinished, name: feature.name
super
end
|
#after_scenario(scenario) ⇒ Object
30
31
32
33
34
|
# File 'lib/gurke/reporters/team_city_reporter.rb', line 30
def after_scenario(scenario)
publish :testFinished, name: scenario.name
super
end
|
#before_feature(feature) ⇒ Object
9
10
11
12
13
|
# File 'lib/gurke/reporters/team_city_reporter.rb', line 9
def before_feature(feature)
publish :testSuiteStarted, name: feature.name
super
end
|
#before_scenario(scenario) ⇒ Object
15
16
17
18
19
20
21
22
|
# File 'lib/gurke/reporters/team_city_reporter.rb', line 15
def before_scenario(scenario)
@status_reported = false
@retry = false
publish :testStarted, name: scenario.name
super
end
|
#retry_scenario(scenario) ⇒ Object
24
25
26
27
28
|
# File 'lib/gurke/reporters/team_city_reporter.rb', line 24
def retry_scenario(scenario)
@retry = true
super
end
|