Re: [rspec-users] Test execution time filtering

2011-08-17 Thread Stefan Kanev
RSpec is built around the premise that each example is run in its own environment, and that one should not depend on the outcome of another. This is not unique to RSpec, btw. It's how all of the unit testing frameworks of which I am aware work. I know I'm going off-topic, but TestNG

Re: [rspec-users] Test execution time filtering

2011-08-17 Thread Stefan Kanev
On Wed, Aug 10, 2011 at 2:23 AM, Mike Jr n00s...@comcast.net wrote: But a sophisticated test will make decisions in mid test. If a certain test condition occurs, set a singleton hash and then have later tests condition their processing on that hash. In my tests, these if statements are

Re: [rspec-users] Test execution time filtering

2011-08-17 Thread Sidu Ponnappa
But a sophisticated test will make decisions in mid test. Quis custodiet ipsos custodes? You'll need to write specs for the logic in your specs then. Best, Sidu. http://c42.in http://blog.sidu.in On 10 August 2011 04:53, Mike Jr n00s...@comcast.net wrote: As I understand it, RSpec runs in two

[rspec-users] Test execution time filtering

2011-08-15 Thread Mike Jr
As I understand it, RSpec runs in two passes. The first pass reads your code and invokes factory methods to generate instances of example- group and example subclasses. The second pass then invokes these generated instance to run your test. RSpec filters (via RSpec.configure) are set and