Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

--no-source also excludes location from the summary

  • Loading branch information...
commit ee23daa0271a5caa43e42211ccd188e3a65a4102 1 parent 5f2e4d5
@aslakhellesoy aslakhellesoy authored
View
5 Gemfile
@@ -1,7 +1,2 @@
source "http://rubygems.org"
-
-group :development do
- # gem 'gherkin', :path => '../gherkin'
-end
-
gemspec
View
3  History.md
@@ -6,6 +6,9 @@
### New Features
* Better line truncation if $CUCUMBER_TRUNCATE_OUTPUT has a max line length value. (Aslak Hellesøy)
+### Changes Features
+* --no-source also excludes location from the summary. (Aslak Hellesøy)
+
## [v1.0.1](https://github.com/cucumber/cucumber/compare/v1.0.0...v1.0.1)
### Bugfixes
View
6 features/background.feature
@@ -299,7 +299,7 @@ Feature: Background
Then I should have '10' cukes
Failing Scenarios:
- cucumber features/failing_background.feature:7 # Scenario: failing background
+ cucumber features/failing_background.feature:7
2 scenarios (1 failed, 1 skipped)
6 steps (1 failed, 5 skipped)
@@ -335,7 +335,7 @@ Feature: Background
| 10 |
Failing Scenarios:
- cucumber features/scenario_outline_failing_background.feature:6 # Scenario: failing background
+ cucumber features/scenario_outline_failing_background.feature:6
2 scenarios (1 failed, 1 skipped)
4 steps (1 failed, 3 skipped)
@@ -386,7 +386,7 @@ Feature: Background
Then I should have '10' global cukes
Failing Scenarios:
- cucumber features/failing_background_after_success.feature:10 # Scenario: failing background
+ cucumber features/failing_background_after_success.feature:10
2 scenarios (1 failed, 1 passed)
6 steps (1 failed, 1 skipped, 4 passed)
View
16 features/tagged_hooks.feature
@@ -58,9 +58,9 @@ Feature: Tag logic
Scenario: And yet another Example
Failing Scenarios:
- cucumber features/tagulicious.feature:4 # Scenario: Example
- cucumber features/tagulicious.feature:8 # Scenario: Another Example
- cucumber features/tagulicious.feature:12 # Scenario: Yet another Example
+ cucumber features/tagulicious.feature:4
+ cucumber features/tagulicious.feature:8
+ cucumber features/tagulicious.feature:12
4 scenarios (3 failed, 1 passed)
3 steps (3 undefined)
@@ -97,7 +97,7 @@ Feature: Tag logic
Scenario: And yet another Example
Failing Scenarios:
- cucumber features/tagulicious.feature:4 # Scenario: Example
+ cucumber features/tagulicious.feature:4
4 scenarios (1 failed, 2 undefined, 1 passed)
3 steps (3 undefined)
@@ -170,9 +170,9 @@ Feature: Tag logic
Scenario: And yet another Example
Failing Scenarios:
- cucumber features/tagulicious.feature:4 # Scenario: Example
- cucumber features/tagulicious.feature:8 # Scenario: Another Example
- cucumber features/tagulicious.feature:12 # Scenario: Yet another Example
+ cucumber features/tagulicious.feature:4
+ cucumber features/tagulicious.feature:8
+ cucumber features/tagulicious.feature:12
4 scenarios (3 failed, 1 passed)
3 steps (3 undefined)
@@ -209,7 +209,7 @@ Feature: Tag logic
Scenario: And yet another Example
Failing Scenarios:
- cucumber features/tagulicious.feature:4 # Scenario: Example
+ cucumber features/tagulicious.feature:4
4 scenarios (1 failed, 2 undefined, 1 passed)
3 steps (3 undefined)
View
6 legacy_features/cucumber_cli.feature
@@ -82,7 +82,7 @@ Feature: Cucumber command line
features/sample.feature:18:in `Given failing'
Failing Scenarios:
- cucumber features/sample.feature:17 # Scenario: Failing
+ cucumber features/sample.feature:17
2 scenarios (1 failed, 1 undefined)
2 steps (1 failed, 1 undefined)
@@ -160,7 +160,7 @@ Feature: Cucumber command line
features/sample.feature:18:in `Given failing'
Failing Scenarios:
- cucumber features/sample.feature:17 # Scenario: Failing
+ cucumber features/sample.feature:17
3 scenarios (1 failed, 1 undefined, 1 passed)
3 steps (1 failed, 1 undefined, 1 passed)
@@ -464,7 +464,7 @@ Feature: Cucumber command line
features/sample.feature:18:in `Given failing'
Failing Scenarios:
- cucumber features/sample.feature:17 # Scenario: Failing
+ cucumber features/sample.feature:17
3 scenarios (1 failed, 1 undefined, 1 passed)
3 steps (1 failed, 1 undefined, 1 passed)
View
6 legacy_features/cucumber_cli_outlines.feature
@@ -27,7 +27,7 @@ Feature: Cucumber command line
| passing | passing |
Failing Scenarios:
- cucumber features/outline_sample.feature:5 # Scenario: Test state
+ cucumber features/outline_sample.feature:5
4 scenarios (1 failed, 1 undefined, 2 passed)
8 steps (1 failed, 2 skipped, 1 undefined, 4 passed)
@@ -59,7 +59,7 @@ Feature: Cucumber command line
| passing | passing |
Failing Scenarios:
- cucumber features/outline_sample.feature:5 # Scenario: Test state
+ cucumber features/outline_sample.feature:5
4 scenarios (1 failed, 1 undefined, 2 passed)
8 steps (1 failed, 2 skipped, 1 undefined, 4 passed)
@@ -108,7 +108,7 @@ Feature: Cucumber command line
features/outline_sample.feature:6:in `Given <state> without a table'
Failing Scenarios:
- cucumber features/outline_sample.feature:5 # Scenario: Test state
+ cucumber features/outline_sample.feature:5
5 scenarios (1 failed, 1 undefined, 3 passed)
8 steps (1 failed, 2 skipped, 1 undefined, 4 passed)
View
2  legacy_features/diffing.feature
@@ -17,7 +17,7 @@ Feature: Cucumber command line
features/failing_expectation.feature:4:in `Given failing expectation'
Failing Scenarios:
- cucumber features/failing_expectation.feature:3 # Scenario: Failing expectation
+ cucumber features/failing_expectation.feature:3
1 scenario (1 failed)
1 step (1 failed)
View
2  legacy_features/profiles.feature
@@ -118,7 +118,7 @@ Feature: Profiles
Then it should fail
And the output should contain
"""
- cucumber -p super features/sample.feature:2 # Scenario: this is a test
+ cucumber -p super features/sample.feature:2
"""
Examples:
| format |
View
2  legacy_features/work_in_progress.feature
@@ -64,7 +64,7 @@ Feature: Cucumber --work-in-progress switch
features/wip.feature:4:in `Given a failing step'
Failing Scenarios:
- cucumber features/wip.feature:3 # Scenario: Failing
+ cucumber features/wip.feature:3
1 scenario (1 failed)
1 step (1 failed)
View
13 lib/cucumber/formatter/console.rb
@@ -59,21 +59,16 @@ def print_elements(elements, status, kind)
end
end
- def print_counts
- STDERR.puts("The #print_counts method is deprecated and will be removed in 0.4. Use #print_stats instead")
- print_stats(nil)
- end
-
- def print_stats(features, profiles = [])
+ def print_stats(features, options)
@failures = step_mother.scenarios(:failed).select { |s| s.is_a?(Cucumber::Ast::Scenario) || s.is_a?(Cucumber::Ast::OutlineTable::ExampleRow) }
@failures.collect! { |s| (s.is_a?(Cucumber::Ast::OutlineTable::ExampleRow)) ? s.scenario_outline : s }
if !@failures.empty?
@io.puts format_string("Failing Scenarios:", :failed)
@failures.each do |failure|
- profiles_string = profiles.empty? ? '' : (profiles.map{|profile| "-p #{profile}" }).join(' ') + ' '
- @io.puts format_string("cucumber #{profiles_string}" + failure.file_colon_line, :failed) +
- format_string(" # Scenario: " + failure.name, :comment)
+ profiles_string = options.custom_profiles.empty? ? '' : (options.custom_profiles.map{|profile| "-p #{profile}" }).join(' ') + ' '
+ source = options[:source] ? format_string(" # Scenario: " + failure.name, :comment) : ''
+ @io.puts format_string("cucumber #{profiles_string}" + failure.file_colon_line, :failed) + source
end
@io.puts
end
View
2  lib/cucumber/formatter/pretty.rb
@@ -228,7 +228,7 @@ def cell_prefix(status)
end
def print_summary(features)
- print_stats(features, @options.custom_profiles)
+ print_stats(features, @options)
print_snippets(@options)
print_passing_wip(@options)
end
View
2  lib/cucumber/formatter/progress.rb
@@ -65,7 +65,7 @@ def exception(*args)
def print_summary(features)
print_steps(:pending)
print_steps(:failed)
- print_stats(features, @options.custom_profiles)
+ print_stats(features, @options)
print_snippets(@options)
print_passing_wip(@options)
end
Please sign in to comment.
Something went wrong with that request. Please try again.