I am writing Gherkin scenarios, I have an After hook I am currently working on. I want to be able to increment two variables (passing, failing) depending on the status of a scenario after it has been ran.
Does Cucumber return an exit code, and if it does, how do you capture it in code?
My tests are being written in RubyMine, and I am testing a web-application using Watir-Webdriver (just in case you need to know).