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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/CAKCESdjkBgbEUXn9ghdT9%2B82vd2EwUryX6MzGMzZifXyhqgJrQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to