Details
-
Improvement
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
-
- directory junctions are cleaned after tests
- on a module with fixtures, running pdk test unit a second time has much lower setup time.
- pdk test clean removes all downloaded or cloned fixtures
-
Puppet Developer Experience
-
New Feature
-
-
Needs Assessment
Description
cleaning all fixtures after rake spec (https://github.com/puppetlabs/puppetlabs_spec_helper/commit/3338d0315713f7e7ae2600372ac119f5f9ea0034) causes extra download times, and delays when running spec tests repeatedly.
To solve the original problem in PDK-381, only the directory junctions on windows need cleaning.
See e.g. https://stackoverflow.com/a/46859947/4918
One possibility to solve is to split spec_clean into spec_clean_fast, and spec_clean_all, have spec_clean call both, but use only the _fast variant after tests. With _fast only removing symlinks.
Expose the spec_clean_all command as pdk test clean to remove cloned and downloaded fixtures, too.