aslakhellesoy-cucumber 0.3.5 → 0.3.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +24 -0
- data/Manifest.txt +5 -2
- data/examples/i18n/fr/features/addition.feature +4 -4
- data/features/after_block_exceptions.feature +97 -0
- data/features/after_step_block_exceptions.feature +99 -0
- data/features/background.feature +47 -2
- data/features/custom_formatter.feature +1 -1
- data/features/step_definitions/cucumber_steps.rb +8 -0
- data/features/work_in_progress.feature +146 -0
- data/lib/cucumber.rb +5 -0
- data/lib/cucumber/ast/background.rb +3 -3
- data/lib/cucumber/ast/outline_table.rb +51 -4
- data/lib/cucumber/ast/scenario.rb +9 -3
- data/lib/cucumber/ast/scenario_outline.rb +4 -0
- data/lib/cucumber/ast/step.rb +3 -3
- data/lib/cucumber/ast/step_invocation.rb +13 -4
- data/lib/cucumber/cli/configuration.rb +54 -23
- data/lib/cucumber/cli/main.rb +6 -2
- data/lib/cucumber/formatter/console.rb +9 -0
- data/lib/cucumber/formatter/junit.rb +1 -1
- data/lib/cucumber/formatter/pretty.rb +7 -2
- data/lib/cucumber/formatter/progress.rb +1 -0
- data/lib/cucumber/formatter/tag_cloud.rb +27 -0
- data/lib/cucumber/languages.yml +60 -60
- data/lib/cucumber/rails/world.rb +16 -3
- data/lib/cucumber/rake/task.rb +2 -2
- data/lib/cucumber/step_match.rb +3 -2
- data/lib/cucumber/step_mother.rb +29 -4
- data/lib/cucumber/version.rb +2 -2
- data/rails_generators/cucumber/templates/cucumber.rake +1 -1
- data/rails_generators/feature/feature_generator.rb +1 -1
- data/spec/cucumber/cli/configuration_spec.rb +0 -3
- data/spec/cucumber/formatter/color_io_spec.rb +1 -0
- data/spec/cucumber/formatter/progress_spec.rb +1 -0
- metadata +6 -4
- data/examples/self_test/features/support/tag_count_formatter.rb +0 -25
- data/lib/cucumber/formatter.rb +0 -1
@@ -1,25 +0,0 @@
|
|
1
|
-
module Tag
|
2
|
-
# Custom formatter that reports occurrences of each tag
|
3
|
-
class Count < Cucumber::Ast::Visitor
|
4
|
-
def initialize(step_mother, io, options)
|
5
|
-
super(step_mother)
|
6
|
-
@io = io
|
7
|
-
@counts = Hash.new{|h,k| h[k] = 0}
|
8
|
-
end
|
9
|
-
|
10
|
-
def visit_features(features)
|
11
|
-
super
|
12
|
-
print_summary
|
13
|
-
end
|
14
|
-
|
15
|
-
def visit_tag_name(tag_name)
|
16
|
-
@counts[tag_name] += 1
|
17
|
-
end
|
18
|
-
|
19
|
-
def print_summary
|
20
|
-
matrix = @counts.to_a.sort{|paira, pairb| paira[0] <=> pairb[0]}.transpose
|
21
|
-
table = Cucumber::Ast::Table.new(matrix)
|
22
|
-
Cucumber::Formatter::Pretty.new(@step_mother, @io, {}).visit_multiline_arg(table)
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
data/lib/cucumber/formatter.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
%w{color_io pretty progress profile rerun html usage junit}.each{|n| require "cucumber/formatter/#{n}"}
|