Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Rspec sometimes takes forever to finish on failed spec example(s) #601

@dicom

Description

@dicom

I'm experiencing a somewhat annoying problem with rspec on a gem I'm developing on a Windows computer. Sometimes, when one or more spec examples fails, rspec takes forever to wrap up displaying the results of the spec run. It will report that execution of the examples was fairly quick (~10 seconds), but in reality, it takes several minutes before it manages to finish display the complete report in command prompt.

If no examples fails it always executes and prints the report quickly.
In many cases with failures it also executes quickly as normal.
In some cases though, it takes forever to wrap it up. When this occurs, it is deterministic, i.e. running the spec again (with that particular failure) always executes really slow.
I think I have never experienced this issue on a non-Windows computer.

The last time this occured for me (928 examples, 1 failure) I notice that it pauses (for a couple of minutes in this case) after having printed the lines:

1) RTKIT::ROI#distribution should return a DoseDistribution
  Failure/Error: distribution = @roi.distribution
  NoMethodError:

Then after a couple of minutes the actual error message is displayed (and the spec task finishes):

undefined method `sum' for #<RTKIT::RTDose:0x283c590>
  # ./lib/rtkit/roi.rb:225:in `distribution'
  # ./spec/rtkit/roi_spec.rb:392:in `block (3 levels) in <module:RTKIT>'

This happens no matter how I run the specs, e.g. bundle exec rake spec, rake spec, rspec, or rspec with --fail-fast option.

Have anyone else experienced this?
Is this a known issue with a known workaround? I have not been able to find any information on this issue.

Alternatively, if this is an unknown bug, is there something I can do to provide better debug information of what is going on?

System info:
OS: Windows XP SP3 32bit
Ruby: 1.9.3p125 (2012-02-16) [i386-mingw32]
Rubygems: 1.8.17
Rspec: 2.9.0

Regards,
Chris

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions