Cross Reference: scenario_progress_formatter.rb
xref
: /
ontohub
/
spec
/
support
/
scenario_progress_formatter.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
scenario_progress_formatter.rb revision dca1e74407ea4cab39b5da1c2af73f8efe68d395
3778
N/A
require
'
cucumber
/
formatter
/
progress
'
3778
N/A
3778
N/A
class
ScenarioProgressFormatter
<
Cucumber
::
Formatter
::
Progress
3778
N/A
SCENARIO_INDENT
=
2
3778
N/A
3778
N/A
def
after_feature_element
(
feature_element
)
3778
N/A
super
(
feature_element
)
3778
N/A
@
io.puts
3778
N/A
@
io.flush
3778
N/A
end
3778
N/A
3778
N/A
def
after_background
(
background
)
3778
N/A
@
io.puts
3778
N/A
@
io.flush
3778
N/A
end
3778
N/A
3778
N/A
def
before_steps
(*
_args
)
3778
N/A
super
(*
_args
)
3778
N/A
@
io.print
(
' '
)
3778
N/A
end
3778
N/A
3778
N/A
def
tag_name
(
tag_name
)
3791
N/A
tag
=
format_string
(
tag_name
, :
tag
)
.
indent
(
SCENARIO_INDENT
)
3778
N/A
@
io.puts
(
tag
)
3778
N/A
@
io.flush
3778
N/A
end
3778
N/A
3778
N/A
def
feature_name
(
keyword
,
name
)
3876
N/A
@
io.puts
(
"#{keyword}: #{name}"
)
3778
N/A
@
io.flush
3778
N/A
end
3778
N/A
3778
N/A
def
background_name
(
keyword
,
name
,
file_colon_line
,
source_indent
)
3876
N/A
print_feature_element_name
(
keyword
,
name
,
file_colon_line
,
source_indent
)
3778
N/A
end
3876
N/A
3778
N/A
def
scenario_name
(
keyword
,
name
,
file_colon_line
,
source_indent
)
3778
N/A
print_feature_element_name
(
keyword
,
name
,
file_colon_line
,
source_indent
)
3876
N/A
end
3779
N/A
3996
N/A
private
3996
N/A
3996
N/A
def
print_feature_element_name
(
keyword
,
name
,
file_colon_line
,
source_indent
)
3996
N/A
names
=
name.empty
? ? [
name
] :
name.split
(
"\n"
)
3778
N/A
line
=
"#{keyword}: #{names[0]}"
.
indent
(
SCENARIO_INDENT
)
3778
N/A
@
io.print
(
line
)
3778
N/A
@
io.print
(
' [...]'
)
if
names
[
1
..-
1
].
present
?
3778
N/A
@
io.flush
3778
N/A
end
3778
N/A
end
3778
N/A