Yes. RSpec simply measures the time between *just before* the first spec runs until *just after* the last spec finishes. It does not attempt to distinguish between different activities that take up that time, such as setting objects up and making DB calls.
Note that we do measure load time separately, however. SummaryNotification#load_time measures the time from when RSpec begins to get loaded until the spec files have all been loaded. Importantly, this does not include the boot time of Ruby itself or anything that loads or executes before RSpec (such as rake or bundler). Myron On Sun, Jan 3, 2016 at 5:45 AM, <[email protected]> wrote: > Hey Folks > > > `SummaryNotification#duration` measures the time taken to run the test > suite, does this time that is returned include how long it took a test > suite to set objects up, make db calls etc? > > Thanks Adam > > -- > 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/7eb116bb-4e4b-4017-802b-07df26729a4d%40googlegroups.com > <https://groups.google.com/d/msgid/rspec/7eb116bb-4e4b-4017-802b-07df26729a4d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CADUxQmvR5E%3DkmLeWfcuytZVnu9Pt3neOVJhbDfyN0oRYk-yi6w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
