Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Do not clobber recent project history when running specs #16255

Merged
merged 1 commit into from
Nov 21, 2017

Conversation

50Wliu
Copy link
Contributor

@50Wliu 50Wliu commented Nov 21, 2017

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • All new code requires tests to ensure against regressions

Description of the Change

Previously, whenever running specs your recent project history would get 🔥d and completely replaced with whatever paths the tests you're running decided to open. So most of the time my recent projects history would end up with only one entry, C:\Users\user\Documents\GitHub\last-package-that-I-tested\spec\fixtures. Not very useful. This change basically nulls out the relevant history-saving methods when running specs to avoid that.

Alternate Designs

Change HistoryManager itself to prevent state storage when specs are running. This seriously impedes the ability to test it, however.

Why Should This Be In Core?

Changed the core spec helper file.

Benefits

A more useful history menu for those who run specs frequently.

Possible Drawbacks

None?

Applicable Issues

None.

@50Wliu 50Wliu merged commit 572aec7 into master Nov 21, 2017
@50Wliu 50Wliu deleted the wl-specs-preserve-project-history branch November 21, 2017 21:33
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