Permalink
Browse files

work with cucumber 0.7.3, default to json_pure

  • Loading branch information...
1 parent ec8209a commit 8c3e8017c6b2ce9b97be0d11bae62c6caba1e96a @jnewland committed May 19, 2010
View
@@ -21,8 +21,8 @@ Jeweler::Tasks.new do |gem|
gem.email = "jnewland@gmail.com"
gem.homepage = "http://github.com/jnewland/cucumber-json"
gem.authors = ["Jesse Newland"]
- gem.add_dependency "cucumber", "~> 0.6.3"
- gem.add_dependency "json", "~> 1.2.1"
+ gem.add_dependency "cucumber", "~> 0.7.3"
+ gem.add_dependency "json_pure", "~> 1.4.3"
gem.test_files.include 'features/**/*'
gem.test_files.exclude 'examples/self_test/tmp/features'
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
View
@@ -48,15 +48,15 @@ Gem::Specification.new do |s|
s.specification_version = 3
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<cucumber>, ["~> 0.6.3"])
- s.add_runtime_dependency(%q<json>, ["~> 1.2.1"])
+ s.add_runtime_dependency(%q<cucumber>, ["~> 0.7.3"])
+ s.add_runtime_dependency(%q<json_pure>, ["~> 1.4.3"])
else
- s.add_dependency(%q<cucumber>, ["~> 0.6.3"])
- s.add_dependency(%q<json>, ["~> 1.2.1"])
+ s.add_dependency(%q<cucumber>, ["~> 0.7.3"])
+ s.add_dependency(%q<json_pure>, ["~> 1.4.3"])
end
else
- s.add_dependency(%q<cucumber>, ["~> 0.6.3"])
- s.add_dependency(%q<json>, ["~> 1.2.1"])
+ s.add_dependency(%q<cucumber>, ["~> 0.7.3"])
+ s.add_dependency(%q<json_pure>, ["~> 1.4.3"])
end
end
@@ -1 +1 @@
-{"failing_features":[],"features":[" Scenario:: One Failing Feature\n When I run cucumber -r ../../../lib -r features/step_definitions -f Cucumber::Formatter::JSON features/one_failure.feature\n Then the output should contain \"output['status_counts']['failed']\" set to \"1\"\n And the output should contain \"output['status_counts']['passed']\" set to \"1\"\n And the output should contain \"output['status_counts']['undefined']\" set to \"1\"\n And the output should contain \"output['status_counts']['pending']\" set to \"1\"\n And the output should contain the failing feature\n \"\"\"\n Scenario:: Failing\n Given failing # features/step_definitions/steps.rb:1\n FAIL (RuntimeError)\n ./features/step_definitions/steps.rb:2:in `/failing/'\n features/one_failure.feature:4:in `Given failing'\n\n \"\"\"\n"," Scenario:: Multiple Failing Features\n When I run cucumber -r ../../../lib -r features/step_definitions -f Cucumber::Formatter::JSON features/multiple_failures.feature\n Then the output should contain \"output['status_counts']['failed']\" set to \"3\"\n And the output should contain \"output['status_counts']['passed']\" set to \"1\"\n And the output should contain the failing feature\n \"\"\"\n Scenario:: Failing\n Given failing # features/step_definitions/steps.rb:1\n FAIL (RuntimeError)\n ./features/step_definitions/steps.rb:2:in `/failing/'\n features/multiple_failures.feature:4:in `Given failing'\n\n \"\"\"\n And the output should contain the failing feature\n \"\"\"\n Scenario:: Failing2\n Given failing # features/step_definitions/steps.rb:1\n FAIL (RuntimeError)\n ./features/step_definitions/steps.rb:2:in `/failing/'\n features/multiple_failures.feature:7:in `Given failing'\n\n \"\"\"\n And the output should contain the failing feature\n \"\"\"\n Scenario:: Failing3\n Given failing # features/step_definitions/steps.rb:1\n FAIL (RuntimeError)\n ./features/step_definitions/steps.rb:2:in `/failing/'\n features/multiple_failures.feature:10:in `Given failing'\n\n \"\"\"\n"," Scenario:: All Features Passing\n When I run cucumber -r ../../../lib -r features/step_definitions -f Cucumber::Formatter::JSON features/all_passing.feature\n Then the output should contain \"output['status_counts']['passed']\" set to \"2\"\n And the output should contain no failing features\n"],"status_counts":{"passed":35}}
+{"failing_features":[],"features":[" Scenario: One Failing Feature\n When I run cucumber -r ../../../lib -r features/step_definitions -f Cucumber::Formatter::JSON features/one_failure.feature\n Then the output should contain \"output['status_counts']['failed']\" set to \"1\"\n And the output should contain \"output['status_counts']['passed']\" set to \"1\"\n And the output should contain \"output['status_counts']['undefined']\" set to \"1\"\n And the output should contain \"output['status_counts']['pending']\" set to \"1\"\n And the output should contain the failing feature\n \"\"\"\n Scenario: Failing\n Given failing # features/step_definitions/steps.rb:1\n FAIL (RuntimeError)\n ./features/step_definitions/steps.rb:2:in `/failing/'\n features/one_failure.feature:4:in `Given failing'\n\n \"\"\"\n"," Scenario: Multiple Failing Features\n When I run cucumber -r ../../../lib -r features/step_definitions -f Cucumber::Formatter::JSON features/multiple_failures.feature\n Then the output should contain \"output['status_counts']['failed']\" set to \"3\"\n And the output should contain \"output['status_counts']['passed']\" set to \"1\"\n And the output should contain the failing feature\n \"\"\"\n Scenario: Failing\n Given failing # features/step_definitions/steps.rb:1\n FAIL (RuntimeError)\n ./features/step_definitions/steps.rb:2:in `/failing/'\n features/multiple_failures.feature:4:in `Given failing'\n\n \"\"\"\n And the output should contain the failing feature\n \"\"\"\n Scenario: Failing2\n Given failing # features/step_definitions/steps.rb:1\n FAIL (RuntimeError)\n ./features/step_definitions/steps.rb:2:in `/failing/'\n features/multiple_failures.feature:7:in `Given failing'\n\n \"\"\"\n And the output should contain the failing feature\n \"\"\"\n Scenario: Failing3\n Given failing # features/step_definitions/steps.rb:1\n FAIL (RuntimeError)\n ./features/step_definitions/steps.rb:2:in `/failing/'\n features/multiple_failures.feature:10:in `Given failing'\n\n \"\"\"\n"," Scenario: All Features Passing\n When I run cucumber -r ../../../lib -r features/step_definitions -f Cucumber::Formatter::JSON features/all_passing.feature\n Then the output should contain \"output['status_counts']['passed']\" set to \"2\"\n And the output should contain no failing features\n"],"status_counts":{"passed":35}}
@@ -71,7 +71,7 @@ Feature: JSON formatter
And the output should contain "output['status_counts']['pending']" set to "1"
And the output should contain the failing feature
"""
- Scenario:: Failing
+ Scenario: Failing
Given failing # features/step_definitions/steps.rb:1
FAIL (RuntimeError)
./features/step_definitions/steps.rb:2:in `/failing/'
@@ -84,7 +84,7 @@ Feature: JSON formatter
And the output should contain "output['status_counts']['passed']" set to "1"
And the output should contain the failing feature
"""
- Scenario:: Failing
+ Scenario: Failing
Given failing # features/step_definitions/steps.rb:1
FAIL (RuntimeError)
./features/step_definitions/steps.rb:2:in `/failing/'
@@ -93,7 +93,7 @@ Feature: JSON formatter
"""
And the output should contain the failing feature
"""
- Scenario:: Failing2
+ Scenario: Failing2
Given failing # features/step_definitions/steps.rb:1
FAIL (RuntimeError)
./features/step_definitions/steps.rb:2:in `/failing/'
@@ -102,7 +102,7 @@ Feature: JSON formatter
"""
And the output should contain the failing feature
"""
- Scenario:: Failing3
+ Scenario: Failing3
Given failing # features/step_definitions/steps.rb:1
FAIL (RuntimeError)
./features/step_definitions/steps.rb:2:in `/failing/'
@@ -227,10 +227,10 @@ def format_step(keyword, step_match, status, source_indent)
end
if status == :passed
- line = keyword + ' ' + step_match.format_args("%s")
+ line = keyword + step_match.format_args("%s")
format_string(line, status)
else
- line = keyword + ' ' + step_match.format_args("%s") + comment
+ line = keyword + step_match.format_args("%s") + comment
format_string(line, status)
end
end
@@ -1,7 +1,7 @@
module Cucumber
module Formatter
class JSON
- VERSION = '0.0.1'
+ VERSION = '0.0.2'
end
end
end

0 comments on commit 8c3e801

Please sign in to comment.