--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/c2824e72-abb7-4374-b2a9-7137acad9aea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/ea6d9921-0bb7-4126-bdca-fcad936c2215%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+unsubscribe@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/ea6d9921-0bb7-4126-bdca-fcad936c2215%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If you'd like to reply by encrypted email you can find my public key on jasonfleetwoodboldt.com (more about setting GPG: https://gpgtools.org)
--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+unsubscribe@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/26421B36-7A39-46EE-9E75-7FEE81766159%40datatravels.com.
On Feb 23, 2017, at 9:34 AM, Satya Rao <sat...@gmail.com> wrote:Thanks Jason for your reply.Let me explain what I'm trying to do here. In my rspec script I have 5 examples(i.e. 5 it blocks) under 1 describe block which I need to repeat all these 5 examples sequentially 5 lach times to test the stability of my device under test. this is my requirement. What is the best possible way to do this?Thanks,Satya.
Let me explain what I’m trying to do here. In my rspec script I have 5 examples(i.e. 5 it blocks) under 1 describe block which I need to repeat all these 5 examples sequentially 5 lach times to test the stability of my device under test. this is my requirement. What is the best possible way to do this?
Create a new single spec specifically for this.
In general it is advised that specs are not order dependent. Meaning each spec should be able to run, testing what is expected, in isolation (i.e. by itself). Having spec order dependencies general is an indication of global state leak and is a bad thing. This is why RSpec sets up the default configuration to set random spec run order.
With that being said, I have written similar “stress” tests specifically with regard to threading. It can be hard to ensure a known thread failure path is hit so often things are run in a loop, within a single spec, to ensure enough workload to produce a high probability of issue.
--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/CAKCESdjkBgbEUXn9ghdT9%2B82vd2EwUryX6MzGMzZifXyhqgJrQ%40mail.gmail.com.