Comments (12)
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.
I am experiencing this as well.
from cucumber-nagios.
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.
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.
Can anyone confirm the suggestion of @bappelt:
- works and is the least intrusive change?
- Make a pull request?
from cucumber-nagios.
I'm sorry i'm a newbie in the rubby world.
- Did you suggests to downgrade Cucumber ? Not really a good way to solve the pb in my point of view.
- «Make a pull request?» sorry , i don't understand :(
from cucumber-nagios.
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.
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.
Indeed it seems to be dead, @benoiteolas .
from cucumber-nagios.
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.
Closed by #88
from cucumber-nagios.
Thanks @hedgehog!
from cucumber-nagios.
Related Issues (20)
- Abandon Ruby 1.8.7: When? HOT 5
- Crash on failing scenario outline
- Drop installing-feature and change tests that rely on installed gem HOT 1
- 0.9.1 depends on an unreleased version of ssh-forever HOT 5
- Step missing @connection
- Submitting forms doesn't work HOT 3
- Create a permanant fork of ssh-forever HOT 3
- UTF-8 regexp with ASCII-8BIT string bug
- cucumber-nagios don't find steps defenintions when run with absolute path to features dir HOT 1
- (Return code of 4 is out of bounds) error when command ran from Nagios HOT 1
- cucumber-nagios does not find definitions HOT 1
- No way to test for correct 404 page
- new step defenition - response should*not contain the header
- Wrong number of arguments error when using with cuken HOT 3
- cucumber >1.1.2 API compatibility
- Gem install fails on Ruby 1.8.7
- Wrong number of argument. ?
- Cucumber-Nagios wrong return
- Unable to run cucumber-nagios on CentOS 6.7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cucumber-nagios.