GithubHelp home page GithubHelp logo

Comments (12)

varunwy avatar varunwy commented on August 26, 2024

I debugged this further and located the problem:
Method: visit_step_result in /usr/lib/ruby/gems/1.8/gems/cucumber-1.2.1/bin/../lib/cucumber/ast/tree_walker.rb calls 'broadcast' with 8 arguments
broadcast(keyword, step_match, multiline_arg, status, exception, source_indent, background, file_colon_line) which in turn calls Method: after_step_result in file: /usr/lib/ruby/gems/1.8/gems/cucumber-nagios-0.9.2/lib/cucumber/formatter/nagios.rb. The method after_step_result is defined with 7 arguments only.

def after_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background)
record_result(status, :step_match => step_match, :keyword => keyword)
end

I fave fixed this by adding an option argument to method after_step_result:
def after_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background, *tmp)
record_result(status, :step_match => step_match, :keyword => keyword)
end

I have no experience programming with Ruby and hence not sure if this is the correct way to fix, though it works for me now.

from cucumber-nagios.

bappelt avatar bappelt commented on August 26, 2024

I am experiencing this as well.

from cucumber-nagios.

bappelt avatar bappelt commented on August 26, 2024

The problem seems to be that an additional argument was added to visit_step_result method in This Commit

Since the cucumber-nagios gemspec file uses the open ended ">= 0.10.0" for it's cucumber dependency, the latest will get installed.

I just manually installed cucumber 1.1.2 and that seems to work.

from cucumber-nagios.

BenoitPoulet avatar BenoitPoulet commented on August 26, 2024

Thank you varunwy !!!

I got the same problem after a «gem update» and you quick fix do the trick.

It seems the cucumber-nagios gem is a dead project :/, 3 months after you post the fix, the bug is stil here.

from cucumber-nagios.

hedgehog avatar hedgehog commented on August 26, 2024

Can anyone confirm the suggestion of @bappelt:

  • works and is the least intrusive change?
  • Make a pull request?

from cucumber-nagios.

BenoitPoulet avatar BenoitPoulet commented on August 26, 2024

I'm sorry i'm a newbie in the rubby world.

  1. Did you suggests to downgrade Cucumber ? Not really a good way to solve the pb in my point of view.
  2. «Make a pull request?» sorry , i don't understand :(

from cucumber-nagios.

hedgehog avatar hedgehog commented on August 26, 2024

Yes I think @bappelt suggested 1.1.2 as the version so try using a Gem dep version of ~>1.1.2

from cucumber-nagios.

BenoitPoulet avatar BenoitPoulet commented on August 26, 2024

I removed «cucumber-1.2.1» and «gherkin-2.11.2» (dependency).
so that is installed (gem list) :
cucumber (1.1.9, 1.1.3)
cucumber-nagios (0.9.2)

I removed the hack of Varunwy and it works :
CUCUMBER OK - Critical: 0, Warning: 0, 8 okay | passed=8; failed=0; nosteps=0; total=8; time=12

from cucumber-nagios.

injcristianrojas avatar injcristianrojas commented on August 26, 2024

Indeed it seems to be dead, @benoiteolas .

from cucumber-nagios.

bendilley avatar bendilley commented on August 26, 2024

Please see pull request #88 as a potential solution. @hedgehog would you be interested in this? It is along the lines of @bappelt's suggestion and works for me.

from cucumber-nagios.

hedgehog avatar hedgehog commented on August 26, 2024

Closed by #88

from cucumber-nagios.

bendilley avatar bendilley commented on August 26, 2024

Thanks @hedgehog!

from cucumber-nagios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.