Hook for number of behaviours in BaseFormatter?
Reported by Hans Olaf Borch | December 7th, 2007 @ 03:21 PM
In BaseFormatter the hook start(example_count) gives you the number of examples to be run. I wonder if I can get the number of behaviours to be run instead?
Comments and changes to this ticket
-
David Chelimsky December 7th, 2007 @ 11:40 PM
Instead, no. In addition to? Maybe.
What's the use case you have in mind?
-

Hans Olaf Borch December 8th, 2007 @ 05:21 PM
Yes, I meant in addition! We have a large suite of acceptance tests in rspec/watir that gets run for each build, and I'd like our project dashboard to display the status based on the total vs. failing behaviours (they each represent a user story, and what matters to us is how many of the stories are failing)
I can detect the number of failing behaviours using the example definition passed in with example_failed, but I couldn't figure out how to get the total number of behaviours to be run.
-
Aslak Hellesøy December 10th, 2007 @ 08:59 AM
- → Assigned user changed from to Aslak Hellesøy
- → State changed from new to open
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Behaviour Driven Development for Ruby.
