-
-
Notifications
You must be signed in to change notification settings - Fork 765
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove inconsistent #order and #randomize? config methods.
* Examples and groups can be ordered differently. * Individual groups can be ordered differently. As such, a global `order` reader method doesn't make a lot of sense (although, assigning the global default via `#order=` still does, I think). Also: * This exposed that the ordering force logic (e.g. to ensure CLI `--order rand` takes precedence over `RSpec.configure`) didn't work properly since it simply ensured `order` returned the forced option but did not ensure the global ordering was set properly. I've fixed this. * Don't clear the seed when setting the order to default. An individual example group may still be run in random order and will need the seed. There's really no reason to clear it. * Always print the seed at the end of the run, even if default order is used. Consider that only one group may be randomized, in which case the seed would be important. Ideally, I'd like to refine this further so that it is conditionally printed based on if the random orderer ever got used, but that can be a later commit.
- Loading branch information
1 parent
acb1840
commit 560a5ea
Showing
6 changed files
with
60 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters