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

Fix group profiling #1992

Merged
merged 4 commits into from
Jun 12, 2015
Merged

Fix group profiling #1992

merged 4 commits into from
Jun 12, 2015

Conversation

myronmarston
Copy link
Member

Fixes #1989.

/cc @JonRowe

(I'm hoping to release 3.3 tomorrow if we can get this merged...)

This isn’t even exercising any of the profile formatter code!
This shared group was only included at one place in
this file but it looks like there were two intended
inclusions.  This fixes that.
@JonRowe
Copy link
Member

JonRowe commented Jun 12, 2015

LGTM merge when green

On Friday, 12 June 2015, Myron Marston [email protected] wrote:

Fixes #1989 #1989.

/cc @JonRowe https://github.com/JonRowe

(I'm hoping to release 3.3 tomorrow if we can get this merged...)

You can view, comment on, or merge this pull request online at:

#1992
Commit Summary

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#1992.

Regressions fixed by this commit:

- We only considered top-level groups before, but #1971
  made it consider nested groups as well.  However, the
  example count was only incremented on the top-level
  group, which meant the output said “Inf seconds”
  since `float / 0` returns `Infinity`.
- We were wrongly listing the example group class name
  rather than the location. This is because we changed from
  locations to groups in the hash.

Fixes #1989.
Profile example group ordering no longer relies on `example.clock`.
It relies directly on `RSpec::Core::Time.now` so we have to update
the spec to make it consistent.
@myronmarston myronmarston force-pushed the fix-group-profiling branch from c775019 to 473e3ed Compare June 12, 2015 08:15
@myronmarston
Copy link
Member Author

LGTM merge when green

Figured out the source of a flicking test and addressed that. Hopefully it'll go green now.

Going to bed (it's around 1 am here).

myronmarston added a commit that referenced this pull request Jun 12, 2015
@myronmarston myronmarston merged commit e69bf55 into master Jun 12, 2015
@myronmarston myronmarston deleted the fix-group-profiling branch June 12, 2015 14:53
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants