cucumber 3.2.0 → 4.0.0.rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +61 -18
  3. data/CONTRIBUTING.md +1 -0
  4. data/bin/cucumber +1 -1
  5. data/lib/autotest/cucumber_mixin.rb +42 -39
  6. data/lib/cucumber/cli/configuration.rb +4 -4
  7. data/lib/cucumber/cli/main.rb +11 -12
  8. data/lib/cucumber/cli/options.rb +56 -69
  9. data/lib/cucumber/cli/profile_loader.rb +32 -20
  10. data/lib/cucumber/configuration.rb +20 -21
  11. data/lib/cucumber/constantize.rb +2 -5
  12. data/lib/cucumber/deprecate.rb +5 -5
  13. data/lib/cucumber/errors.rb +4 -6
  14. data/lib/cucumber/events.rb +1 -0
  15. data/lib/cucumber/events/gherkin_source_parsed.rb +11 -0
  16. data/lib/cucumber/events/step_activated.rb +2 -1
  17. data/lib/cucumber/file_specs.rb +6 -6
  18. data/lib/cucumber/filters/activate_steps.rb +5 -3
  19. data/lib/cucumber/filters/prepare_world.rb +5 -9
  20. data/lib/cucumber/filters/quit.rb +1 -3
  21. data/lib/cucumber/filters/tag_limits/verifier.rb +2 -4
  22. data/lib/cucumber/formatter/ansicolor.rb +40 -45
  23. data/lib/cucumber/formatter/ast_lookup.rb +160 -0
  24. data/lib/cucumber/formatter/backtrace_filter.rb +5 -7
  25. data/lib/cucumber/formatter/console.rb +28 -59
  26. data/lib/cucumber/formatter/console_counts.rb +4 -9
  27. data/lib/cucumber/formatter/console_issues.rb +6 -3
  28. data/lib/cucumber/formatter/duration_extractor.rb +1 -1
  29. data/lib/cucumber/formatter/fanout.rb +2 -0
  30. data/lib/cucumber/formatter/ignore_missing_messages.rb +1 -1
  31. data/lib/cucumber/formatter/interceptor.rb +5 -7
  32. data/lib/cucumber/formatter/io.rb +8 -14
  33. data/lib/cucumber/formatter/json.rb +93 -117
  34. data/lib/cucumber/formatter/junit.rb +55 -57
  35. data/lib/cucumber/formatter/pretty.rb +346 -152
  36. data/lib/cucumber/formatter/progress.rb +28 -32
  37. data/lib/cucumber/formatter/rerun.rb +22 -4
  38. data/lib/cucumber/formatter/stepdefs.rb +1 -2
  39. data/lib/cucumber/formatter/steps.rb +2 -3
  40. data/lib/cucumber/formatter/summary.rb +16 -8
  41. data/lib/cucumber/formatter/unicode.rb +15 -17
  42. data/lib/cucumber/formatter/usage.rb +9 -8
  43. data/lib/cucumber/gherkin/data_table_parser.rb +8 -6
  44. data/lib/cucumber/gherkin/formatter/ansi_escapes.rb +13 -17
  45. data/lib/cucumber/gherkin/formatter/escaping.rb +2 -2
  46. data/lib/cucumber/gherkin/steps_parser.rb +7 -8
  47. data/lib/cucumber/glue/dsl.rb +1 -1
  48. data/lib/cucumber/glue/hook.rb +16 -9
  49. data/lib/cucumber/glue/invoke_in_world.rb +13 -18
  50. data/lib/cucumber/glue/proto_world.rb +14 -16
  51. data/lib/cucumber/glue/registry_and_more.rb +7 -9
  52. data/lib/cucumber/glue/snippet.rb +21 -20
  53. data/lib/cucumber/glue/step_definition.rb +14 -15
  54. data/lib/cucumber/glue/world_factory.rb +1 -1
  55. data/lib/cucumber/hooks.rb +11 -11
  56. data/lib/cucumber/multiline_argument.rb +4 -6
  57. data/lib/cucumber/multiline_argument/data_table.rb +88 -59
  58. data/lib/cucumber/multiline_argument/data_table/diff_matrices.rb +1 -1
  59. data/lib/cucumber/multiline_argument/doc_string.rb +1 -1
  60. data/lib/cucumber/platform.rb +3 -3
  61. data/lib/cucumber/rake/task.rb +13 -16
  62. data/lib/cucumber/rspec/disable_option_parser.rb +9 -8
  63. data/lib/cucumber/running_test_case.rb +2 -53
  64. data/lib/cucumber/runtime.rb +27 -57
  65. data/lib/cucumber/runtime/after_hooks.rb +3 -3
  66. data/lib/cucumber/runtime/before_hooks.rb +3 -3
  67. data/lib/cucumber/runtime/for_programming_languages.rb +3 -2
  68. data/lib/cucumber/runtime/step_hooks.rb +1 -1
  69. data/lib/cucumber/runtime/support_code.rb +10 -12
  70. data/lib/cucumber/runtime/user_interface.rb +4 -6
  71. data/lib/cucumber/step_definition_light.rb +4 -3
  72. data/lib/cucumber/step_match.rb +12 -11
  73. data/lib/cucumber/step_match_search.rb +2 -1
  74. data/lib/cucumber/term/ansicolor.rb +9 -9
  75. data/lib/cucumber/version +1 -1
  76. metadata +37 -28
  77. data/lib/cucumber/formatter/cucumber.css +0 -286
  78. data/lib/cucumber/formatter/cucumber.sass +0 -247
  79. data/lib/cucumber/formatter/hook_query_visitor.rb +0 -42
  80. data/lib/cucumber/formatter/html.rb +0 -611
  81. data/lib/cucumber/formatter/html_builder.rb +0 -121
  82. data/lib/cucumber/formatter/http_io.rb +0 -146
  83. data/lib/cucumber/formatter/inline-js.js +0 -30
  84. data/lib/cucumber/formatter/jquery-min.js +0 -154
  85. data/lib/cucumber/formatter/json_pretty.rb +0 -11
  86. data/lib/cucumber/formatter/legacy_api/adapter.rb +0 -1028
  87. data/lib/cucumber/formatter/legacy_api/ast.rb +0 -394
  88. data/lib/cucumber/formatter/legacy_api/results.rb +0 -50
  89. data/lib/cucumber/formatter/legacy_api/runtime_facade.rb +0 -32
  90. data/lib/cucumber/step_argument.rb +0 -25
@@ -9,7 +9,9 @@ module Cucumber
9
9
 
10
10
  def initialize(step_definition, step_name, step_arguments)
11
11
  raise "step_arguments can't be nil (but it can be an empty array)" if step_arguments.nil?
12
- @step_definition, @name_to_match, @step_arguments = step_definition, step_name, step_arguments
12
+ @step_definition = step_definition
13
+ @name_to_match = step_name
14
+ @step_arguments = step_arguments
13
15
  end
14
16
 
15
17
  def args
@@ -21,7 +23,7 @@ module Cucumber
21
23
 
22
24
  def activate(test_step)
23
25
  test_step.with_action(@step_definition.location) do
24
- invoke(MultilineArgument.from_core(test_step.source.last.multiline_arg))
26
+ invoke(MultilineArgument.from_core(test_step.multiline_arg))
25
27
  end
26
28
  end
27
29
 
@@ -46,7 +48,7 @@ module Cucumber
46
48
  #
47
49
  # lambda { |param| "[#{param}]" }
48
50
  #
49
- def format_args(format = lambda { |a| a }, &proc)
51
+ def format_args(format = ->(a) { a }, &proc)
50
52
  replace_arguments(@name_to_match, @step_arguments, format, &proc)
51
53
  end
52
54
 
@@ -75,7 +77,7 @@ module Cucumber
75
77
 
76
78
  replacement = if block_given?
77
79
  yield(group.value)
78
- elsif Proc === format
80
+ elsif Proc == format.class
79
81
  format.call(group.value)
80
82
  else
81
83
  format % group.value
@@ -95,13 +97,13 @@ module Cucumber
95
97
  private
96
98
 
97
99
  def deep_clone_args
98
- Marshal.load( Marshal.dump( args ) )
100
+ Marshal.load(Marshal.dump(args))
99
101
  end
100
102
  end
101
103
 
102
104
  class SkippingStepMatch
103
105
  def activate(test_step)
104
- return test_step.with_action { raise Core::Test::Result::Skipped.new }
106
+ test_step.with_action { raise Core::Test::Result::Skipped }
105
107
  end
106
108
  end
107
109
 
@@ -123,8 +125,7 @@ module Cucumber
123
125
  end
124
126
 
125
127
  def file_colon_line
126
- raise "No file:line for #{@step}" unless @step.file_colon_line
127
- @step.file_colon_line
128
+ location.to_s
128
129
  end
129
130
 
130
131
  def backtrace_line
@@ -132,7 +133,7 @@ module Cucumber
132
133
  end
133
134
 
134
135
  def text_length
135
- @step.text_length
136
+ @step.text.length
136
137
  end
137
138
 
138
139
  def step_arguments
@@ -141,7 +142,7 @@ module Cucumber
141
142
 
142
143
  def activate(test_step)
143
144
  # noop
144
- return test_step
145
+ test_step
145
146
  end
146
147
  end
147
148
 
@@ -151,7 +152,7 @@ module Cucumber
151
152
  end
152
153
 
153
154
  def activate(test_step)
154
- return test_step.with_action { raise @error }
155
+ test_step.with_action { raise @error }
155
156
  end
156
157
  end
157
158
  end
@@ -13,7 +13,8 @@ module Cucumber
13
13
 
14
14
  class AssertUnambiguousMatch
15
15
  def initialize(search, configuration)
16
- @search, @configuration = search, configuration
16
+ @search = search
17
+ @configuration = configuration
17
18
  end
18
19
 
19
20
  def call(step_name)
@@ -35,7 +35,7 @@ module Cucumber
35
35
  [:on_magenta, 45],
36
36
  [:on_cyan, 46],
37
37
  [:on_white, 47]
38
- ]
38
+ ].freeze
39
39
 
40
40
  ATTRIBUTE_NAMES = ATTRIBUTES.transpose.first
41
41
  # :startdoc:
@@ -54,8 +54,9 @@ module Cucumber
54
54
  end
55
55
  self.coloring = true
56
56
 
57
+ # rubocop:disable Security/Eval
57
58
  ATTRIBUTES.each do |c, v|
58
- eval %Q{
59
+ eval <<-END_EVAL, binding, __FILE__, __LINE__ + 1
59
60
  def #{c}(string = nil)
60
61
  result = String.new
61
62
  result << "\e[#{v}m" if Cucumber::Term::ANSIColor.coloring?
@@ -71,23 +72,23 @@ module Cucumber
71
72
  result << "\e[0m" if Cucumber::Term::ANSIColor.coloring?
72
73
  result
73
74
  end
74
- }
75
+ END_EVAL
75
76
  end
77
+ # rubocop:enable Security/Eval
76
78
 
77
79
  # Regular expression that is used to scan for ANSI-sequences while
78
80
  # uncoloring strings.
79
81
  COLORED_REGEXP = /\e\[(?:[34][0-7]|[0-9])?m/
80
82
 
81
83
  def self.included(klass)
82
- if klass == String
83
- ATTRIBUTES.delete(:clear)
84
- ATTRIBUTE_NAMES.delete(:clear)
85
- end
84
+ return unless klass == String
85
+ ATTRIBUTES.delete(:clear)
86
+ ATTRIBUTE_NAMES.delete(:clear)
86
87
  end
87
88
 
88
89
  # Returns an uncolored version of the string, that is all
89
90
  # ANSI-sequences are stripped from the string.
90
- def uncolored(string = nil) # :yields:
91
+ def uncolored(string = nil)
91
92
  if block_given?
92
93
  yield.gsub(COLORED_REGEXP, '')
93
94
  elsif string
@@ -105,7 +106,6 @@ module Cucumber
105
106
  def attributes
106
107
  ATTRIBUTE_NAMES
107
108
  end
108
- extend self
109
109
  end
110
110
  end
111
111
  end
@@ -1 +1 @@
1
- 3.2.0
1
+ 4.0.0.rc.1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 4.0.0.rc.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aslak Hellesøy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-06-02 00:00:00.000000000 Z
13
+ date: 2018-09-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: builder
@@ -32,19 +32,22 @@ dependencies:
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: 3.2.0
35
+ version: '4.0'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: 3.2.0
42
+ version: '4.0'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: cucumber-expressions
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '6.0'
50
+ - - ">="
48
51
  - !ruby/object:Gem::Version
49
52
  version: 6.0.1
50
53
  type: :runtime
@@ -52,22 +55,39 @@ dependencies:
52
55
  version_requirements: !ruby/object:Gem::Requirement
53
56
  requirements:
54
57
  - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '6.0'
60
+ - - ">="
55
61
  - !ruby/object:Gem::Version
56
62
  version: 6.0.1
63
+ - !ruby/object:Gem::Dependency
64
+ name: cucumber-formatter-dots
65
+ requirement: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '1.0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '1.0'
57
77
  - !ruby/object:Gem::Dependency
58
78
  name: cucumber-wire
59
79
  requirement: !ruby/object:Gem::Requirement
60
80
  requirements:
61
81
  - - "~>"
62
82
  - !ruby/object:Gem::Version
63
- version: 0.0.1
83
+ version: '1.0'
64
84
  type: :runtime
65
85
  prerelease: false
66
86
  version_requirements: !ruby/object:Gem::Requirement
67
87
  requirements:
68
88
  - - "~>"
69
89
  - !ruby/object:Gem::Version
70
- version: 0.0.1
90
+ version: '1.0'
71
91
  - !ruby/object:Gem::Dependency
72
92
  name: diff-lcs
73
93
  requirement: !ruby/object:Gem::Requirement
@@ -88,14 +108,14 @@ dependencies:
88
108
  requirements:
89
109
  - - "~>"
90
110
  - !ruby/object:Gem::Version
91
- version: 5.1.0
111
+ version: '6.0'
92
112
  type: :runtime
93
113
  prerelease: false
94
114
  version_requirements: !ruby/object:Gem::Requirement
95
115
  requirements:
96
116
  - - "~>"
97
117
  - !ruby/object:Gem::Version
98
- version: 5.1.0
118
+ version: '6.0'
99
119
  - !ruby/object:Gem::Dependency
100
120
  name: multi_json
101
121
  requirement: !ruby/object:Gem::Requirement
@@ -220,14 +240,14 @@ dependencies:
220
240
  requirements:
221
241
  - - "~>"
222
242
  - !ruby/object:Gem::Version
223
- version: 0.52.1
243
+ version: 0.58.2
224
244
  type: :development
225
245
  prerelease: false
226
246
  version_requirements: !ruby/object:Gem::Requirement
227
247
  requirements:
228
248
  - - "~>"
229
249
  - !ruby/object:Gem::Version
230
- version: 0.52.1
250
+ version: 0.58.2
231
251
  - !ruby/object:Gem::Dependency
232
252
  name: simplecov
233
253
  requirement: !ruby/object:Gem::Requirement
@@ -345,6 +365,7 @@ files:
345
365
  - lib/cucumber/encoding.rb
346
366
  - lib/cucumber/errors.rb
347
367
  - lib/cucumber/events.rb
368
+ - lib/cucumber/events/gherkin_source_parsed.rb
348
369
  - lib/cucumber/events/gherkin_source_read.rb
349
370
  - lib/cucumber/events/step_activated.rb
350
371
  - lib/cucumber/events/step_definition_registered.rb
@@ -371,32 +392,20 @@ files:
371
392
  - lib/cucumber/filters/tag_limits/test_case_index.rb
372
393
  - lib/cucumber/filters/tag_limits/verifier.rb
373
394
  - lib/cucumber/formatter/ansicolor.rb
395
+ - lib/cucumber/formatter/ast_lookup.rb
374
396
  - lib/cucumber/formatter/backtrace_filter.rb
375
397
  - lib/cucumber/formatter/console.rb
376
398
  - lib/cucumber/formatter/console_counts.rb
377
399
  - lib/cucumber/formatter/console_issues.rb
378
- - lib/cucumber/formatter/cucumber.css
379
- - lib/cucumber/formatter/cucumber.sass
380
400
  - lib/cucumber/formatter/duration.rb
381
401
  - lib/cucumber/formatter/duration_extractor.rb
382
402
  - lib/cucumber/formatter/fail_fast.rb
383
403
  - lib/cucumber/formatter/fanout.rb
384
- - lib/cucumber/formatter/hook_query_visitor.rb
385
- - lib/cucumber/formatter/html.rb
386
- - lib/cucumber/formatter/html_builder.rb
387
- - lib/cucumber/formatter/http_io.rb
388
404
  - lib/cucumber/formatter/ignore_missing_messages.rb
389
- - lib/cucumber/formatter/inline-js.js
390
405
  - lib/cucumber/formatter/interceptor.rb
391
406
  - lib/cucumber/formatter/io.rb
392
- - lib/cucumber/formatter/jquery-min.js
393
407
  - lib/cucumber/formatter/json.rb
394
- - lib/cucumber/formatter/json_pretty.rb
395
408
  - lib/cucumber/formatter/junit.rb
396
- - lib/cucumber/formatter/legacy_api/adapter.rb
397
- - lib/cucumber/formatter/legacy_api/ast.rb
398
- - lib/cucumber/formatter/legacy_api/results.rb
399
- - lib/cucumber/formatter/legacy_api/runtime_facade.rb
400
409
  - lib/cucumber/formatter/pretty.rb
401
410
  - lib/cucumber/formatter/progress.rb
402
411
  - lib/cucumber/formatter/rerun.rb
@@ -437,7 +446,6 @@ files:
437
446
  - lib/cucumber/runtime/step_hooks.rb
438
447
  - lib/cucumber/runtime/support_code.rb
439
448
  - lib/cucumber/runtime/user_interface.rb
440
- - lib/cucumber/step_argument.rb
441
449
  - lib/cucumber/step_definition_light.rb
442
450
  - lib/cucumber/step_definitions.rb
443
451
  - lib/cucumber/step_match.rb
@@ -462,12 +470,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
462
470
  version: '2.2'
463
471
  required_rubygems_version: !ruby/object:Gem::Requirement
464
472
  requirements:
465
- - - ">="
473
+ - - ">"
466
474
  - !ruby/object:Gem::Version
467
- version: '0'
475
+ version: 1.3.1
468
476
  requirements: []
469
- rubygems_version: 3.0.6
477
+ rubyforge_project:
478
+ rubygems_version: 2.4.5.5
470
479
  signing_key:
471
480
  specification_version: 4
472
- summary: cucumber-3.2.0
481
+ summary: cucumber-4.0.0.rc.1
473
482
  test_files: []
@@ -1,286 +0,0 @@
1
- /* cucumber.css is generated from cucumber.sass */
2
- /* Regenerate with rake sass */
3
- body {
4
- font-size: 0px;
5
- color: white;
6
- margin: 0px;
7
- padding: 0px;
8
- }
9
-
10
- .cucumber, td, th {
11
- font: normal 11px "Lucida Grande", Helvetica, sans-serif;
12
- background: white;
13
- color: black;
14
- }
15
- .cucumber #cucumber-header, td #cucumber-header, th #cucumber-header {
16
- background: #65c400;
17
- color: white;
18
- height: 6em;
19
- }
20
- .cucumber #cucumber-header #expand-collapse p, td #cucumber-header #expand-collapse p, th #cucumber-header #expand-collapse p {
21
- float: right;
22
- margin: 0 0 0 10px;
23
- }
24
- .cucumber .scenario h3, td .scenario h3, th .scenario h3, .background h3 {
25
- font-size: 11px;
26
- padding: 3px;
27
- margin: 0;
28
- background: #65c400;
29
- color: white;
30
- font-weight: bold;
31
- }
32
-
33
- .background h3 {
34
- font-size: 1.2em;
35
- background: #666;
36
- }
37
-
38
- .cucumber h1, td h1, th h1 {
39
- margin: 0px 10px 0px 10px;
40
- padding: 10px;
41
- font-family: "Lucida Grande", Helvetica, sans-serif;
42
- font-size: 2em;
43
- position: absolute;
44
- }
45
- .cucumber h4, td h4, th h4 {
46
- margin-bottom: 2px;
47
- }
48
- .cucumber div.feature, td div.feature, th div.feature {
49
- padding: 2px;
50
- margin: 0px 10px 5px 10px;
51
- }
52
- .cucumber div.examples, td div.examples, th div.examples {
53
- padding: 0em 0em 0em 1em;
54
- }
55
- .cucumber .stats, td .stats, th .stats {
56
- margin: 2em;
57
- }
58
- .cucumber .summary ul.features li, td .summary ul.features li, th .summary ul.features li {
59
- display: inline;
60
- }
61
- .cucumber .step_name, td .step_name, th .step_name {
62
- float: left;
63
- }
64
- .cucumber .step_file, td .step_file, th .step_file {
65
- text-align: right;
66
- color: #999999;
67
- }
68
- .cucumber .step_file a, td .step_file a, th .step_file a {
69
- color: #999999;
70
- }
71
- .cucumber .scenario_file, td .scenario_file, th .scenario_file {
72
- float: right;
73
- color: #999999;
74
- }
75
- .cucumber .tag, td .tag, th .tag {
76
- font-weight: bold;
77
- color: #246ac1;
78
- }
79
- .cucumber .backtrace, td .backtrace, th .backtrace {
80
- margin-top: 0;
81
- margin-bottom: 0;
82
- margin-left: 1em;
83
- color: black;
84
- }
85
- .cucumber a, td a, th a {
86
- text-decoration: none;
87
- color: #be5c00;
88
- }
89
- .cucumber a:hover, td a:hover, th a:hover {
90
- text-decoration: underline;
91
- }
92
- .cucumber a:visited, td a:visited, th a:visited {
93
- font-weight: normal;
94
- }
95
- .cucumber a div.examples, td a div.examples, th a div.examples {
96
- margin: 5px 0px 5px 15px;
97
- color: black;
98
- }
99
- .cucumber .outline table, td .outline table, th .outline table {
100
- margin: 0px 0px 5px 10px;
101
- }
102
- .cucumber table, td table, th table {
103
- border-collapse: collapse;
104
- }
105
- .cucumber table td, td table td, th table td {
106
- padding: 3px 3px 3px 5px;
107
- }
108
- .cucumber table td.failed, .cucumber table td.passed, .cucumber table td.skipped, .cucumber table td.pending, .cucumber table td.undefined, td table td.failed, td table td.passed, td table td.skipped, td table td.pending, td table td.undefined, th table td.failed, th table td.passed, th table td.skipped, th table td.pending, th table td.undefined {
109
- padding-left: 18px;
110
- padding-right: 10px;
111
- }
112
- .cucumber table td.failed, td table td.failed, th table td.failed {
113
- border-left: 5px solid #c20000;
114
- border-bottom: 1px solid #c20000;
115
- background: #fffbd3;
116
- color: #c20000;
117
- }
118
- .cucumber table td.passed, td table td.passed, th table td.passed {
119
- border-left: 5px solid #65c400;
120
- border-bottom: 1px solid #65c400;
121
- background: #dbffb4;
122
- color: #3d7700;
123
- }
124
- .cucumber table td.skipped, td table td.skipped, th table td.skipped {
125
- border-left: 5px solid aqua;
126
- border-bottom: 1px solid aqua;
127
- background: #e0ffff;
128
- color: #001111;
129
- }
130
- .cucumber table td.pending, td table td.pending, th table td.pending {
131
- border-left: 5px solid #faf834;
132
- border-bottom: 1px solid #faf834;
133
- background: #fcfb98;
134
- color: #131313;
135
- }
136
- .cucumber table td.undefined, td table td.undefined, th table td.undefined {
137
- border-left: 5px solid #faf834;
138
- border-bottom: 1px solid #faf834;
139
- background: #fcfb98;
140
- color: #131313;
141
- }
142
- .cucumber table td.message, td table td.message, th table td.message {
143
- border-left: 5px solid aqua;
144
- border-bottom: 1px solid aqua;
145
- background: #e0ffff;
146
- color: #001111;
147
- }
148
- .cucumber ol, td ol, th ol {
149
- list-style: none;
150
- margin: 0px;
151
- padding: 0px;
152
- }
153
- .cucumber ol li.step, td ol li.step, th ol li.step {
154
- padding: 3px 3px 3px 18px;
155
- margin: 5px 0px 5px 5px;
156
- }
157
- .cucumber ol li, td ol li, th ol li {
158
- margin: 0em 0em 0em 1em;
159
- padding: 0em 0em 0em 0.2em;
160
- }
161
- .cucumber ol li span.param, td ol li span.param, th ol li span.param {
162
- font-weight: bold;
163
- }
164
- .cucumber ol li.failed, td ol li.failed, th ol li.failed {
165
- border-left: 5px solid #c20000;
166
- border-bottom: 1px solid #c20000;
167
- background: #fffbd3;
168
- color: #c20000;
169
- }
170
- .cucumber ol li.passed, td ol li.passed, th ol li.passed {
171
- border-left: 5px solid #65c400;
172
- border-bottom: 1px solid #65c400;
173
- background: #dbffb4;
174
- color: #3d7700;
175
- }
176
- .cucumber ol li.skipped, td ol li.skipped, th ol li.skipped {
177
- border-left: 5px solid aqua;
178
- border-bottom: 1px solid aqua;
179
- background: #e0ffff;
180
- color: #001111;
181
- }
182
- .cucumber ol li.pending, td ol li.pending, th ol li.pending {
183
- border-left: 5px solid #faf834;
184
- border-bottom: 1px solid #faf834;
185
- background: #fcfb98;
186
- color: #131313;
187
- }
188
- .cucumber ol li.undefined, td ol li.undefined, th ol li.undefined {
189
- border-left: 5px solid #faf834;
190
- border-bottom: 1px solid #faf834;
191
- background: #fcfb98;
192
- color: #131313;
193
- }
194
- .cucumber ol li.message, td ol li.message, th ol li.message {
195
- border-left: 5px solid aqua;
196
- border-bottom: 1px solid aqua;
197
- background: #e0ffff;
198
- color: #001111;
199
- margin-left: 10px;
200
- white-space: pre;
201
- }
202
- .cucumber #summary, td #summary, th #summary {
203
- margin: 0px;
204
- padding: 5px 10px;
205
- text-align: right;
206
- top: 0px;
207
- right: 0px;
208
- float: right;
209
- }
210
- .cucumber #summary p, td #summary p, th #summary p {
211
- margin: 0 0 0 2px;
212
- }
213
- .cucumber #summary #totals, td #summary #totals, th #summary #totals {
214
- font-size: 1.2em;
215
- }
216
-
217
- .ruby {
218
- font-size: 12px;
219
- font-family: monospace;
220
- color: white;
221
- background: black;
222
- padding: 0.1em 0 0.2em 0;
223
- }
224
- .ruby .keyword {
225
- color: #ff6600;
226
- }
227
- .ruby .constant {
228
- color: #339999;
229
- }
230
- .ruby .attribute {
231
- color: white;
232
- }
233
- .ruby .global {
234
- color: white;
235
- }
236
- .ruby .module {
237
- color: white;
238
- }
239
- .ruby .class {
240
- color: white;
241
- }
242
- .ruby .string {
243
- color: #66ff00;
244
- }
245
- .ruby .ident {
246
- color: white;
247
- }
248
- .ruby .method {
249
- color: #ffcc00;
250
- }
251
- .ruby .number {
252
- color: white;
253
- }
254
- .ruby .char {
255
- color: white;
256
- }
257
- .ruby .comment {
258
- color: #9933cc;
259
- }
260
- .ruby .symbol {
261
- color: white;
262
- }
263
- .ruby .regex {
264
- color: #44b4cc;
265
- }
266
- .ruby .punct {
267
- color: white;
268
- }
269
- .ruby .escape {
270
- color: white;
271
- }
272
- .ruby .interp {
273
- color: white;
274
- }
275
- .ruby .expr {
276
- color: white;
277
- }
278
- .ruby .offending {
279
- background: #333333;
280
- }
281
- .ruby .linenum {
282
- width: 75px;
283
- padding: 0.1em 1em 0.2em 0;
284
- color: black;
285
- background: #fffbd3;
286
- }