Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cucumber 2.4.0 support #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vicmunoz
Copy link

Just modifying gemspec to use cucumber ~> 2.4.0 instead of ~> 1.3.3
Running unit_spec tests finishes all examples without failures.

Anything else needed ? Am I missing something?

Thanks,

@vicmunoz
Copy link
Author

Apologies, now I've seen I wasn't running all tests. Hoping to get back with full code

@vicmunoz
Copy link
Author

Related to #8

@vicmunoz
Copy link
Author

Another thing, my development environment is with ruby 2.4.1, so if you update travis config adding new ruby versions should run successfully

@shepmaster
Copy link
Member

Thank you for the pull request, and sorry for the long response!

@@ -9,7 +9,8 @@ namespace :generate do

task :cucumber do
cucumber = "#{Gem.loaded_specs['cucumber'].gem_dir}/bin/cucumber"
run_ruby_acceptance "-rci/reporter/rake/cucumber_loader -S #{cucumber} --format CI::Reporter::Cucumber acceptance/cucumber"
# run_ruby_acceptance "-rci/reporter/rake/cucumber_loader -S #{cucumber} --format CI::Reporter::Cucumber acceptance/cucumber"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not commit commented-out code.

@@ -9,7 +9,8 @@ namespace :generate do

task :cucumber do
cucumber = "#{Gem.loaded_specs['cucumber'].gem_dir}/bin/cucumber"
run_ruby_acceptance "-rci/reporter/rake/cucumber_loader -S #{cucumber} --format CI::Reporter::Cucumber acceptance/cucumber"
# run_ruby_acceptance "-rci/reporter/rake/cucumber_loader -S #{cucumber} --format CI::Reporter::Cucumber acceptance/cucumber"
run_ruby_acceptance "-rci/reporter/rake/cucumber_loader -S #{cucumber} --format CI::Reporter::Cucumber"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of moving the directory, I'd rather add -r acceptance/cucumber/step_definitions/development_steps.rb to this command.

@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features|acceptance)/})
spec.require_paths = ["lib"]

spec.add_dependency "cucumber", "~> 1.3.3"
spec.add_dependency "cucumber", "~> 2.4.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no need to be as drastic with the change here. It appears that ">= 1.3.3", "< 3.0.0" should be fine.

vicmunoz pushed a commit to vicmunoz/ci_reporter_cucumber that referenced this pull request Jul 21, 2017
@vicmunoz
Copy link
Author

Don't worry. I've included your changes.

@vicmunoz
Copy link
Author

@shepmaster Long time ago request. Could you review is still is pending something? thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants